Home Forums WinForms controls Xceed Grid for WinForms Adding Rows to Unbound Grid Reply To: Adding Rows to Unbound Grid

User (Old forums)
Post count: 23064

This made it work:

foreach (Xceed.Grid.DataRow myRow in gridControl2.SelectedRows)
// add to grid
Xceed.Grid.DataRow row = gridControl1.DataRows.AddNew();
row.Cells[“TEST_NAME”].Value = myRow.Cells[“TEST_NAME”].Value;
row.Cells[“ALIQUOT_NAME”].Value = myRow.Cells[“ALIQUOT_NAME”].Value;
row.Cells[“TEST_ID”].Value = myRow.Cells[“TEST_ID”].Value.ToString();

Imported from legacy forums. Posted by Nathan (had 2979 views)