c# - How to bulk edit a single column in a grid view -


i working on asp.net application ( c#) . in have grid view columns displayed itemtemplates. want edit values of 1 column.

i have update button below grid view. when click on update, new values should updated database.

i using list collection bind data grid view.

i have no idea how accomplish this.

lets have textbox inside column, user going update new values. can iterate through gridview rows, in manner

foreach(gridviewrow row in gridview1.rows) {     if(row.rowtype == datacontrolrowtype.datarow) {          textbox txtbx= row.findcontrol("txtbx") textbox;         //using txtbx can new values , update db     } } 

Comments

Popular posts from this blog

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

html - How to style widget with post count different than without post count -

url rewriting - How to redirect a http POST with urlrewritefilter -