gridControl获取选中行的值

private void MainView_DoubleClick(object sender, EventArgs e)
{
BControlcarInfoModel SelectModel = (BControlcarInfoModel)MainView.GetFocusedRow();
if (SelectModel != null)
{
NewCarConLook LookControlInfo = new NewCarConLook();
LookControlInfo.CurrentFormInitStatus = FormInitStatus.Look;
LookControlInfo.CurrentFormID = SelectModel.CONTROLCAR_ID;
LookControlInfo.Show();
}
}

posted @ 2018-03-21 17:29  执念、旧时光  阅读(5223)  评论(0编辑  收藏  举报