1.多选问题
多选只需要开启多选及多选框即可。
2.多选以后文本框显示的值不是选中的值怎么办?
设置自定义文本显示事件就行
int[] rows = this.gridView2.GetSelectedRows();
if(rows != null)
{
List<string> listname = new List<string>();
foreach (int r in rows)
{
string name = gridView2.GetRowCellValue(r, "MachineName").ToString();
listname.Add(name);
}
string text = string.Join(",", listname);
e.DisplayText = text.ToString();
}