标签:复选框 osi cer 事件 message value gets 数据 view
//绑定DataTable
gridControl1.DataSource = DbHelper.ExecuteDataTable("SELECT * FROM dc_Log");
private void repositoryItemButtonEdit1_Click(object sender, EventArgs e)
{
//获取点击行的索引
int RowIndex = gridView1.GetFocusedDataSourceRowIndex();
//输出值
MessageBox.Show(gridView1.GetRowCellValue(RowIndex, "LogId").ToString());
}
private void simpleButton1_Click(object sender, EventArgs e)
{
//获取所选择的行
int[] rows = gridView1.GetSelectedRows();
foreach(int i in rows)
{
//输出值
MessageBox.Show(gridView1.GetRowCellValue(i, "LogId").ToString());
}
}
DEV GridControl控件使用(CheckBox全选、操作按钮、事件处理,获取值)
标签:复选框 osi cer 事件 message value gets 数据 view
原文地址:https://www.cnblogs.com/superfeeling/p/12492476.html