我想知道如何将其转换为 GridControl 代码而不是 DataGridView。
foreach (DataGridViewRow row in (IEnumerable)this.dataGridView1.Rows)
{
Data.SomethingA item = new Data.SomethingA
{
item.ac = Convert.ToUInt32(row.Cells[5].Value.ToString())
};
item.ad = Convert.ToUInt32(row.Cells[2].Value.ToString()[7].ToString());
item.ab = row.Cells[1].Value.ToString();
item.az = row.Cells[3].Value.ToString();
item.ae = Convert.ToUInt32(row.Cells[4].Value.ToString());
item.aq = row.Cells[6].Value.ToString();
ABC.Add(item);
}
谢谢