2 select command in one gridview
-
hi all, In my gridview i have to select as well as update for which am using two link btns,am using a sr_no as the datakeyname and when i write string s = GridView1.SelectedValue.ToString(); for getting the sr_no it works fine in the selected index changed but i cannot get the sr_no when am using it for updation in the gridview1_rowupdating() event ... is there any way i can get the selected value of the gridview as it is important that i have 2 buttons in the gridview .
-
hi all, In my gridview i have to select as well as update for which am using two link btns,am using a sr_no as the datakeyname and when i write string s = GridView1.SelectedValue.ToString(); for getting the sr_no it works fine in the selected index changed but i cannot get the sr_no when am using it for updation in the gridview1_rowupdating() event ... is there any way i can get the selected value of the gridview as it is important that i have 2 buttons in the gridview .
try this, gvwName.DataKeys[e.RowIndex].Value :)
Arun Jacob http://codepronet.blogspot.com/
-
try this, gvwName.DataKeys[e.RowIndex].Value :)
Arun Jacob http://codepronet.blogspot.com/
-