我从db.i获取所有数据。我手动在网格中添加复选框colmn。如果我选择checkbox。我想要从数据网格视图中检查原始值。
Refer below example:
int[] rowHandles = this.gridView.GetSelectedRows();
if (rowHandles == null || rowHandles.Length == 0)
return;
foreach (int rowHandle in rowHandles)
{
DataRow row =
this.gridView.GetDataRow(rowHandle);
if (row != null)
{
var name = row["NAME"].ToString();
}
}