Devexpress’te Gridcontrol’daki seçili satırlardaki verileri alma kodu
1 2 3 4 5 6 7 8 9 10 11 12 13 |
int secimsayisi = Convert.ToInt32(GridView1.SelectedRowsCount); if (secimsayisi == 0) { XtraMessageBox.Show("Listeden herhangi bir seçim yapmadınız", "İŞLEM BAŞARISIZ", MessageBoxButtons.OK, MessageBoxIcon.Error); } else { int[] RowHandles = GridView1.GetSelectedRows(); foreach (int i in RowHandles) { // seçilen satırlar tek tek burada dönecek } } |
Reklam