dev gridcontrol获取点击行的某个数据

用GetRowCellDisplayText方法,只需一行代码:

string strName = grvQueryResult.GetRowCellDisplayText(e.RowHandle, "Name");

grvQueryResult是我的gridcontrol里面的gridview名字,“Name”即为想获取的列名


你可能感兴趣的:(C#,GridView,dev,gridcontrol)