Zatim jsem to vyresil takto pokud mate nekdo jine a lepsi reseni rad se necemu novemu priucim
int irows = 0;
if(this.uchmDataGirdView_workplan.CurrentRow != null)
irows = this.uchmDataGirdView_workplan.CurrentRow.Index;
this.uchmDataGirdView_workplan.DataSource = this.m_RotTabAccess.GridView_ReadTable(UniversalDataAccess.CConstant.ROWSTATUS_ALL, sel_Material);
if (irows > 0)
{ this.uchmDataGirdView_workplan.Rows[0].Selected = false;
this.uchmDataGirdView_workplan.Rows[irows].Selected = true;
}
}
|