DEV中获取gridControl里当前选中行的数据

来源:互联网 发布:win10卡顿如何优化 编辑:程序博客网 时间:2024/05/17 07:04

private void gridView1_FocusedRowChanged(object sender, DevExpress.XtraGrid.Views.Base.FocusedRowChangedEventArgs e)
        {
            int intRowHandle = e.FocusedRowHandle;
            object oRevDate = gridView1.GetRowCellValue(intRowHandle, gridColumn8);
            txtJMC.Text = oRevDate.ToString();
        }

原创粉丝点击