Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
25
WebDataGrid
posted

i'm using a control WEdataGrid ASp.NET Ajax i need a sample in visual basic.net for a get the value of a a cell in teh rowselection

thank's everybody

Parents
No Data
Reply
  • 24671
    Suggested Answer
    posted

    If you want to get selected cell's collection from anywhere:

     

            WebDataGrid1.Behaviors.Selection.SelectedCells

    If you handle Selection the changed event:
     Protected Sub WebDataGrid1_CellSelectionChanged(ByVal sender As Object, ByVal e As Infragistics.Web.UI.GridControls.SelectedCellEventArgs) Handles WebDataGrid1.CellSelectionChanged
            Dim selectedCells As Infragistics.Web.UI.GridControls.SelectedCellCollection = e.CurrentSelectedCells
        End Sub
    To get specific cell's Text or Value:
           selectedCells(0).Text
    Apart from SelectedCells, there is also SelectedRows property in the Selection behavior. 
    Hope it helps,
    Angel 

     

Children