Code for rowupdating event in gridview
How can I obtain the new value in string description?
Sql Client; public partial class _Default : System.
Once, you got the values you just need to send them to the database.
HTML CODE: C# Code Behind: private void Bind Data() protected void gv Categories_Row Editing(object sender, Grid View Edit Event Args e) protected void gv Categories_Row Updating(object sender, Grid View Update Event Args e) Hello Azam, Thanks for the prompt reply. Find Control("txt Category Description") as Text Box). Regards, Amol I am attempting to get the rowupdate event working with a gridview.
I have no problem accessing it from the Grid View1_Row Updating event for validation purposes.
The event is firing okay, but when the event is done it appears that the row never updates.The Grid Data Item class here is implemented specially for this local data [email protected] I am using the same code as u have identified. First in pageload you need to create a column in the datatable like task Table. Add("Company Name", typeof(string)); for all columns. Another thing I observed that some time you are binding the data to the dataset that you got from DB and few times you are binding from session table. I have set the requisite attributes in the Grid View tag.
(Note, in the gridview the One strange thing that I've noticed that makes me think it's a View State problem is that if I change the Command Name of the Update button to "Edit" that postback event does get captured in the Row Command event...
For more information about how to handle events, see Handling and Raising Events.