Rowupdating event in gridview in asp net with c uchea dating

aspdotnet-suresh offers C#articles and tutorials,csharp dot net,articles and tutorials, VB.

I am sharing this because I see a lot of questions on the forums on how to get the value from the Grid View object, and I know how.

Here in Grid View, 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 Grid View then we can go for template field, otherwise bound field will be simpler.

First, we have to very be clear in our mind that there are mainly two ways of taking the cell value from the Grid View: This code is for taking the value apart from the Grid View events; that is, any common event using a sender object.

But ensure that the control/link is inside the Grid View, only then can we cast sender as Grid View.

The columns can be pre defined columns like Check Box Field, Image Field etc. The following example shows creating a grid with edit and delete buttons on right for a table with name DEPT having three columns DEPTNO, DNAME and LOC.

In my previous article, I described how to use a Grid View control to display data using a Sql Data Source control.

Leave a Reply