DevExpress 取得GreidtView 中列的值

string tid = gridView1.GetDataRow(gridView1.FocusedRowHandle)["ID"].ToString();
                if (XtraMessageBox.Show("确定要删除吗", "提示信息", MessageBoxButtons.YesNo, MessageBoxIcon.Information) == DialogResult.Yes)
                {
                    if ((!string.IsNullOrEmpty(tid)))
                    {
                        int id = Convert.ToInt32(tid);
                        Delte_Infor(id);
                    }
                }

你可能感兴趣的:(DevExpress 取得GreidtView 中列的值)