Hi Marcel,
You can get the record from TableControlPrepareViewStyleInfo event by using record.GetValue method. Below is a code snippet
GridTableCellStyleInfo style = e.Style as GridTableCellStyleInfo;
Element el = style.TableCellIdentity.DisplayElement;
if (el.Kind == DisplayElementKind.Record)
{
Record rec = el.GetRecord();
rec.GetValue("ColumnName"); //get the value from record.
rec.SetValue("ColumnName","fieldvalue"); set the value from record.
}
How do you sort the Records?
>>>>>>>>>>>>>>
If you want to sort the records insted of sorting the summary descriptor. You can reset the IComparer of the SortColumnDescriptor in a TableControlQueryAllowSort event .Below is a small sample that implement this task. Please try this and let me know if this helps.
Sample :
WindowsApplication124.zipBest regards,
Haneef