get index of DataTable column with name
I have some code which sets the value of cells in a DataRow by column name i.e.
I have some code which sets the value of cells in a DataRow by column name i.e.
I have an ASP.NET GridView that’s bound to an ObjectDataSource (which is bound to a MySQL database). On this grid, I have 2 unbound ButtonField columns that I want to trigger server-side events. Hence I have added an eventhandler method to the GridView‘s RowCommand event.