P
Prince
Hi, could someone either please tell me or point me in
the right direction.
I have a DataGrid on a page with the DataKeyField="ID".
The grid displays checkboxes for each record. I have an
<asp:Button> on the page. In the handle for the button
click, when I determine if the checkbox is checked (by
interating thru all the rows of the DataGrid, how do I
get the actual value of ID so that I can pass the value
to my stored procedures?
code looks something like this:
DataGrid scDG;
// binding ....
int count = scDg.Items.Count;
int id;
for loop...
id = ????
end for loop
Thanks,
Prince
the right direction.
I have a DataGrid on a page with the DataKeyField="ID".
The grid displays checkboxes for each record. I have an
<asp:Button> on the page. In the handle for the button
click, when I determine if the checkbox is checked (by
interating thru all the rows of the DataGrid, how do I
get the actual value of ID so that I can pass the value
to my stored procedures?
code looks something like this:
DataGrid scDG;
// binding ....
int count = scDg.Items.Count;
int id;
for loop...
id = ????
end for loop
Thanks,
Prince