Onrowupdating newvalues Tgen xxx
You can see the C# code below will give the row number whatever you are editing by New Edit Index property.So Grid View will put the appropriate row into the Edit Mode by assigning row number to its Edit Index property. You can follow any responses to this entry through the RSS 2.0 feed.
In case of the bound field’s we need to check what column it is and need to use index of that cloumn, which is little hard and even in future if we change the column order If you see the Last Template Field part in the above code, I am using the link buttons for edit, update, delete and cancel.May be you may think why am I using link buttons as we are provided with some command field buttons by Grid View.Secondly if you want to include a custom field (some button or link) in the same column it’s not possible. I want to provide my user a Gridview filled with data from database, allowing him to edit these records not in order to update the database, but in order to insert edited rows in db as new records through a stored procedure. - to use Edit built-in capabilities (Edit button, Edit Item Template etc.) because I don't need to make any real updating and I don't have a clear idea of how to "bypass" the parts I don't want.) Cri Thanks, yousuf... I think Edit Index is nothing, because the whole Edit thing is never raised. Row Editing ds = Get Data() '// get your data here from database With gv Test .
Search for onrowupdating newvalues:
Please join our friendly community by clicking the button below - it only takes a few seconds and is totally free.