|
helo frnds,
im trying to capture updated data from gridview upon check box selection..
however im unable to retreive new data..
it alwasy capture old data...pls help me...
i haave used gridediteventargs..but in vain......
i want to capture new data in button click event
best rgrds
nancy
|
|
|
|
|
Ma'am;
You have a gridview with a check box in each row and you want an array of the selected rows keys. right?
if so, you should have a template column that contain a check box with a specific name say 'Selection'
<input type="checkbox" name="Selection" value="<%# Eval("Key")%>" />
when you postback the page you can get the array using Request["Selection"]
Help people,so poeple can help you.
|
|
|
|
|
Member 9707207 wrote: im trying to capture updated data from gridview upon check box selection..however im unable to retreive new data..
Just check if you are binding the grid data again on postback. If so, before the update event is raised the data will be back to previous state and changes will be lost.
You need to put the databind code for the grid in Page.IsPostback property to avoid a rebind until unless specified in a postback.
|
|
|
|