|
SfDataGrid.Refresh() |
|
for (int i = 0; i < this.textGrid.GetRowGenerator().Items.Count; i++)
{
if (this.textGrid.GetRowGenerator().Items[i].RowData != null)
{
if (this.textGrid.GetRowGenerator().Items[i].RowData.Equals(viewModel.OrdersInfo[i-1]))
{
var row = (DataRowBase)this.textGrid.GetRowGenerator().Items[i];
this.textGrid.GetRowGenerator().Items[i].GetType().GetRuntimeMethods().FirstOrDefault(x => x.Name.Equals("UpdateRowStyles")).Invoke(row,null);
break;
}
}
} |