ASPDEV
asked on
GridView Row Edit Cell Value in ASP.NET 2.0
Hello Experts,
I need a cell value from Grid View Row_Edit.
Qty Name State
1 John CA
2 DAVID FL
When I edit second row, I need value of Name, I did something like this:
Protected Sub GridView1_RowEditing(ByVal sender As Object, ByVal e As System.Web.UI.WebControls. GridViewEd itEventArg s) Handles GridView1.RowEditing
Dim strName as string = GridView1.Rows(e.NewEditIn dex).Cells (1).Text
I get strName = ""
End Sub
How can I get cell value????
I need a cell value from Grid View Row_Edit.
Qty Name State
1 John CA
2 DAVID FL
When I edit second row, I need value of Name, I did something like this:
Protected Sub GridView1_RowEditing(ByVal
Dim strName as string = GridView1.Rows(e.NewEditIn
I get strName = ""
End Sub
How can I get cell value????
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
It worked:
Dim EntryType As Label = GridView1.Rows(e.NewEditIn