Asp net gridview onrowupdating not firing


19-Oct-2019 15:52

asp net gridview onrowupdating not firing-47

Text chat website no card no signup no money

Anyway, the problem isn't that it can't be done 'manually' - but rather that there are a myriad of ways that you can hook up custom link/command processing and they are all similar but yet quite different.

None of them feels natural to me, so quite frequently - especially if I haven't written that code in a while - I spent way more time than I should rediscovering what approach I should use the hard way.

Although the Grid View Command Event Args have a Data Item member that member is unfortunately not set with the Data Row as you would maybe expect.

So rather than getting the bound item directly, I have to retrieve the grid Row's Data Item index, then use that index and retrieve the value from the original data source.

Also notice that if you have both Button Fields/Command Fields and template items that have command arguments, the Command Argument will contain different things.

For demonstration I have created a database (named Database.mdf) in which we have a table named tbl_Employee.

Grid View displays the values of a data source in a table where each column represents a field and each row represents a record.