Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to get text value from datagrid cell on webform
Message
General information
Forum:
ASP.NET
Category:
WebForms
Miscellaneous
Thread ID:
00678234
Message ID:
00678272
Views:
16
Found the way:
Private Sub DataGrid1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles DataGrid1.SelectedIndexChanged
        Dim itemCell As TableCell
        Dim selectedMonth As String
        itemCell = DataGrid1.Items(DataGrid1.SelectedIndex).Cells(1)
        selectedMonth = itemCell.Text

        Me.TextBox1.Text = selectedMonth
End Sub
Previous
Reply
Map
View

Click here to load this message in the networking platform