tags:

views:

21

answers:

2

I want to select a value in a Grid view cell on aspx page. I need the VB.NET code to do this

In C# code will be this:

string id = GridView1.Rows[e.RowIndex].Cells[1].Text

Could someone help me with this?

+1  A: 

Well you can use this page other time. http://www.developerfusion.com/tools/convert/csharp-to-vb/

Dim id As String = GridView1.Rows(e.RowIndex).Cells(1).Text
Aristos
thanx !!!I'll Try this one.Hope it will work.
nashpaw
e.RowIndex there no such property RowIndex for e
nashpaw
I'm writing this code for selected index changed event.
nashpaw
A: 

I tried some coding that visual studio suggest and this do the thing I wanted:

Dim id As string = GridView1.SelectedRow.Cells(1).Text
nashpaw