Help On Grid View Footer

Posted by Vijayar under C# on 12/20/2011 | Points: 10 | Views : 1032 | Status : [Member] | Replies : 1
Hi
I am Binding teachers to grid and providing status like present,absent etc..
I am Placing a Save button In footer of grid view And writing the code in Row command to save the status .While i am catching id of the teacher .I am getting error as "input string not in a correct format: The same code works when i place save button inside grid view
try
{
if (e.CommandName == "Save")
{
//int Id=Int32.Parse((string)e.CommandArgument);
int Id= int.Parse(e.CommandArgument.ToString())

RadioButtonList rdolist = ((RadioButtonList)gvteacher.Rows[0].Cells[0].FindControl("rdlstatus"));
string st = rdolist.SelectedValue.ToString();

}
How to catch id of the id


I am unable to understand my mistake

vijaya


Responses

Posted by: Sksamantaray on: 12/20/2011 [Member] Silver | Points: 25

Up
0
Down
http://www.dotnetspider.com/forum/159014-how-find-control-which-footer-gridview.aspx
may help you

Thanks,
Sanjay

Vijayar, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response