Interviews2 answers
I want update row in datatable without using any loop
2 Answers
datatable.Select(string.Format("[lineNo]='{0}' and [Position]>='{1}' ", lineNo, Position)).ToList().ForEach(r => r["Linetext"] ="Sample Text" );
rahul dadgePosted Dec 23, 2015, 8:34 AM EST
hi praveen Donga
u place a sqldata source control and gridview control on to webpage .then u go to grid view control properties we have a property datasource id=sqldata source control. then configure the sqldatasource control by giving table. and then u use the update statement by clicking on update tab u use the following syntax
<update tablename set column name=value,columnname=value where columnname=value>
u place a sqldata source control and gridview control on to webpage .then u go to grid view control properties we have a property datasource id=sqldata source control. then configure the sqldatasource control by giving table. and then u use the update statement by clicking on update tab u use the following syntax
<update tablename set column name=value,columnname=value where columnname=value>
Posted Jun 7, 2009, 9:05 PM EDT