C
cpnet
I have a GridView which I'm populating from an ObjectDataSource (give the
GridView a DataTable). The GridView will have about 20 rows, and only one
editable column. The editable column consists of a RadioButtonList ("Yes",
"No", "Not Answered") in a TemplateColumn. I want the user to be able to
select a radio button for each row in the GridView (without having to first
put each row into edit mode). Once the user has selected the Radio button
for each row, they'll post back the form and I want the values from the
radio buttons persisted back to my source DataTable.
The GridView doesn't seem to fire it's RowUpdate/Edit events unless I
actually put one of the rows into edit mode. If I cause a post-back, the
radio button selections are persisted (I guess in the View State) but those
selections don't get pushed through to my ObjectDataSource (it's assigned
update method is not called). It seems the Grid View is not set up to
automatically do 'true' inline editing where you can edit multiple rows in a
single postback. Is there an event of the GridView I can/should use to
persist the selections to my ObjectDataSource's DataTable?
GridView a DataTable). The GridView will have about 20 rows, and only one
editable column. The editable column consists of a RadioButtonList ("Yes",
"No", "Not Answered") in a TemplateColumn. I want the user to be able to
select a radio button for each row in the GridView (without having to first
put each row into edit mode). Once the user has selected the Radio button
for each row, they'll post back the form and I want the values from the
radio buttons persisted back to my source DataTable.
The GridView doesn't seem to fire it's RowUpdate/Edit events unless I
actually put one of the rows into edit mode. If I cause a post-back, the
radio button selections are persisted (I guess in the View State) but those
selections don't get pushed through to my ObjectDataSource (it's assigned
update method is not called). It seems the Grid View is not set up to
automatically do 'true' inline editing where you can edit multiple rows in a
single postback. Is there an event of the GridView I can/should use to
persist the selections to my ObjectDataSource's DataTable?