Conclusion Here in gridview, in the beginning the major part is to make the decision of putting either a bound field or a template field and the answer is simple: When we want to place any control inside the gridview then we can go for template field, otherwise bound field will be simpler.
Hi, I have been working with the Data Grids and recently have been trying to implement the . If it was a Data Grid, I would have used the code below and made the updating of the Data Grid work. Cells when using I would first suggest that you use the Template Columns instead of the Bound Columns this way you are not dependent on the index/position of the column in the Grid View.
I do not know how to implement the Row Updating event in the Grid View.
For example: if the value of the description was "Hello how are you" and then the users hits Edit and changes this value to " am fine", in the C# file, the value obtained in the string description is still "Hello how are you". Now I moved this binding after querying module into the (! Is Post Back and click edit on the grid I no longer see the grid.
How can I obtain the new value in string description?
But ensure that the control/link is inside the gridview, only then can we cast sender as grid view.
This code is a bit complex but just add it knowing that we may refer to it in the future.Background I am sharing this because I see in the forums a lot of questions based on how to get the value from the gridview object, and I know the reason behind that.As a beginner it's very tough and challenging to work with controls like a gridview in ASP. Even I faced difficulties at the starting point of my career. And mainly here I am not going to explain about gridview and other events in it, because there are a lot of good articles available for that.However, now I am all confused and lost with the Grid View. In the code below I have shown how you can extract the new values from the textboxes inside the Grid View. Once, you got the values you just need to send them to the database. The Row Updating event is raised before changes to a single Data Row are applied to Teradata database.