GridControl:
遍历查询结果,属于当前组的数据设置为勾选状态:
DevGridControlHelper.BindData(gdcMailGroupUser, dtResult, new int[] { 1, 1, 1, 1, 1, 1, -1});
int rowCount = dtResult.Rows.Count;
int dtRowCount = dtResult.Rows.Count;
for (int i = 0; i < dtRowCount; i++)
{
if (dtResult.Rows[i][0].ToString().Trim() != ""&&!string.IsNullOrEmpty(sMailGroupId) && sMailGroupId == dtResult.Rows[i][5].ToString())
{
gdvMailGroupUser.SelectRow(i);
}
}
==&