极致软件中 表格单列选中行的方法
if (CurrentGrid.Selected.Rows.Count == 0)
return;
EntityObject eoOrg = null;
EntityObject eoSupier = null;
EntityObject eowh = null;
ArrayList arr = new ArrayList();//Columns
foreach (Infragistics.Win.UltraWinGrid.UltraGridRow row in CurrentGrid.Selected.Rows)
{
if (!(bool)BaseFunc.IsNull(row.Cells["IsCheck"].Value, false))
{
Jeez.Common.UI.MsgBox.Inform(string.Format("失败:没有审核,请确认", row.ListIndex + 1));
return;
}
if (Convert.ToDecimal(BaseFunc.IsNull(row.Cells["poqty"].Value, 0m)) -
Convert.ToDecimal(BaseFunc.IsNull(row.Cells["sendqty"].Value, 0m)) <= 0m)
{
Jeez.Common.UI.MsgBox.Inform(string.Format("第{0}行已经完成订单", row.ListIndex + 1));
return;
}