Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Get the column
Message
 
 
To
21/10/2003 11:24:47
General information
Forum:
ASP.NET
Category:
WebForms
Title:
Miscellaneous
Thread ID:
00840686
Message ID:
00842022
Views:
21
I've done this with some help from the DataSet object.
    Private Sub DgRelac_CurrentCellChanged(ByVal sender As Object _
    , ByVal e As System.EventArgs) Handles DgRelac.CurrentCellChanged
        Dim nR As Integer
        Dim nC As Integer
        With Dg.CurrentCell
            nR = .RowNumber 
            nC = .ColumnNumber
        End With
        MessageBox.Show(Ds.Tables(0).Rows(nR)(nC))
    End Sub
In the following code:
Ds = the DataSet object
Dg = the DataGrid object
.tables(0); 0 is the table index, but you can use the table name instead if you want.

HtH
Previous
Reply
Map
View

Click here to load this message in the networking platform