private void gdvSummary_FocusedRowChanged(object sender, DevExpress.XtraGrid.Views.Base.FocusedRowChangedEventArgs e)
{
int[] iaResId = gdvSummary.GetSelectedRows();//获得选中行(关闭MultiSelectMode)
DataTable dt = new DataTable();
if (iaResId.Length > 0)
{
if (gdvSummary.GetRowCellValue(iaResId[0], "RES_ID")!=null && gdvSummary.GetRowCellValue(iaResId[0], "RES_ID").ToString() != "")
{
string sResId = gdvSummary.GetRowCellValue(iaResId[0], "RES_ID").ToString() ;
dt = ListRoutineFDC.ViewFDCDCPSummaryParaByResId(sResId);
if (dt != null)
{
DevGridControlHelper.BindData(gdcTracePara, dt, new int[] { -1, 1, 1});
return ;
}
else
{
dt=InitGVParaDataTable();
DevGridControlHelper.BindData(gdcTracePara, dt, new int[] { -1, 1, 1 });
return;
}
}
else
{
dt = InitGVParaDataTable();
DevGridControlHelper.BindData(gdcTracePara, dt, new int[] { -1, 1, 1});
return ;
}
}
else
{
dt = InitGVParaDataTable();
DevGridControlHelper.BindData(gdcTracePara, dt, new int[] { -1, 1, 1 });
return;
}
}