开发者

Select the value of a cell in GridView

开发者 https://www.devze.com 2023-01-12 22:24 出处:网络
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:

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 = Grid开发者_如何学CView1.Rows[e.RowIndex].Cells[1].Text

Could someone help me with this?


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


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

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

精彩评论

暂无评论...
验证码 换一张
取 消