Commandfield rowupdating

Rated 3.81/5 based on 775 customer reviews

New Values Hi mckrecker, thanks for your reply but I dont need to differ between old and new values since I set a datakey which is the unique ID in my db and I update where unique ID = @unique IDselected of column.

New Values -- it will have all the values, as does e.

I presume its related to correctly targeting the Drop Down List in question? And i have read a lot from MSDN, and i followed exactly like what it says, but i still can't edit the rows.... Currently I am having trouble with my latest coding adventure I have a web application which records jobs and labour assigned to jobs.

commandfield rowupdating-68

commandfield rowupdating-37

Drag a Grid View into the Web Form and assign Data Key Names property with the primary key column i.e.

PS: location name is not an integer You don't access the table cells by name.

So, basically, instead of looking for table cells, look for the appropriate e.

Save all or press "Ctrl S" and hit "F5" to run the page, the page will look as in the following image: Click on "Edit the Grid View", it will display Textboxes in each cell as in the following image: Edit the value(s) here and click on the Update link, it will update all the data or to remove it click on the "Delete" link above the image shown.

One note will be helpful for you, while describing Columns in Grid View if you are using a boundfield then create objects of the control using cells[index] in the rowupdateing event of Grid View, but if you are using controls itself like Label or textboxes etc then use Fincontrol("stringid").

Leave a Reply