public void DetailRowRefresh(Guid RowID) { DataTable dtResult = new DataTable(); dtResult = BKM.ListDetailperRow(RowID); dgDetailBKM.RefreshDataRow(dtResult.Rows[0], "RowID", RowID.ToString()); }
public void DetailRowRefresh(Guid RowID) { DataTable dtResult = new DataTable(); dtResult = BKM.ListDetailperRow(RowID); if (dgDetailBKM.Rows.Count == 0) { dtBKMDetail = dtResult.Copy(); dtBKMDetail.DefaultView.Sort = "RecordID"; dgDetailBKM.DataSource = dtBKMDetail.DefaultView; } else { dgDetailBKM.RefreshDataRow(dtResult.Rows[0], "RowID", RowID.ToString()); } }