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
444
How to add UltraGridRow to UltraWinGrid.UltraGrid
posted

 I have 2 UltraGrids on a form. Say, select some rows on Grid1, and click on the button to see these selected rows on Grid =2. 

When user clicks the button, I have all the rows selected on Grid 1 in SelectedRowsCollection Object. Now how do I add these UltraGridRows collection to Grid2.

UltraGrid1.DataSource does not accept  SelectedRowsCollection.

I cannot even directly convert/cast each UltraGridRow to DataRow, place it in DataTable and and assign that datatable to Grid's DataSource.

I don't even see something like Grid2.Rows.Add(UltraGridRow)

How do I display those selected rows in Grid1 on Grid2?

Please help me find a solution.

Thanks,

Sindhu