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
5549
RowSelectionChanged and then? how can i get the values of the selected row
posted

 

 

 

 

 

The following event is fired, i have a selected row.

Protected Sub WebDataGrid1_RowSelectionChanged(ByVal sender As Object, ByVal e As Infragistics.Web.UI.GridControls.SelectedRowEventArgs) Handles

WebDataGrid1.RowSelectionChanged

 

 

If e.CurrentSelectedRows.Count > 0 And Not IsNothing(e.CurrentSelectedRows(0))

Then

 

 

Dim selectedRows As

Infragistics.Web.UI.GridControls.SelectedRowCollection = e.CurrentSelectedRows

 

 

Dim dataItem As Object = e.CurrentSelectedRows(0).DataItem

when i click on a row of a webdatagrid i want get the current id of the dataset's current id
for example the customerid of the dataset.
i bind my webdatagrid to a dataset (everything i do in vb.net ! )
how can i ge the data through
e.CurrentSelectedRows ????

Parents
  • 20
    posted

    Hallo Martin!

    I am new in web programming and do have the question: How did you integrate your example into the web page? The solutions I found are only ba a RowSelectionChanged-Function in Javascript but not - as your example shows - in VB.

    If I enter e.g.

    WebDataGrid1.Behaviors.Selection.SelectionClientEvents.RowSelectionChanged = "WebDataGrid1_RowSelectionChanged"

    then I get the error message

    The "WebDataGrid1_RowSelectionChanged" for "RowSelectionChanged" should be a function, function name, or function text

     

Reply Children