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

User (Old forums)
Member
Post count: 23064

This made it work:

<b>
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();
row.EndEdit();
}
</b>

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