Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Get the column
Message
 
À
21/10/2003 11:24:47
Information générale
Forum:
ASP.NET
Catégorie:
WebForms
Titre:
Divers
Thread ID:
00840686
Message ID:
00842022
Vues:
23
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform