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
926
Selected Row column values
posted

Hello,

How would I get the value of columns from a selected row in the grid.

On doubleclick of row in the grid, I need to take the values from the selected row for each column and pass it to the other form.

I want to put the values in different variables.

This is my code:

Dim grd As UltraGrid = ugrdImportDetails

''Check if the user has selected the row

If Me.ugrdImportDetails.Selected.Rows.Count > 0 Then

Dim rowSelected As UltraGridRowFor Each rowSelected In Me.ugrdImportDetails.Selected.Rows

 

Next

End If

 

Thanks

Parents
No Data
Reply
  • 70
    posted

    just enumerate cells in your row:

    foreach (UltraGridCell cell in rowSelected.Cells)

    {

         cell.Value - gives you value object in row at column: cell.Column.Key (column name)

    }

Children