I set the FlowDirection of datagrid but to no use. If FlowDirection of DataGrid is set, should it be automatically set to all underlying controls. Currently the GroupByRecord header is showing data incorrectly due to its incorrect FlowDirection. Any ideas how can I make it correct.
I did this in dataGrid_InitializeRecord but didn't work. Any ideas?
if
(e.Record is GroupByRecord)
{
Style style = new Style(typeof(HeaderLabelArea), Infragistics.Windows.Themes.DataPresenterGeneric.HeaderLabelArea);
Setter setter = new Setter();
setter.Property =
FrameworkElement.FlowDirectionProperty;
setter.Value =
CultureInfo.CurrentUICulture.TextInfo.IsRightToLeft
?
FlowDirection.RightToLeft
:
FlowDirection.LeftToRight;
GroupByRecord gbr = e.Record as GroupByRecord;
Thanks,
Imad.
gbr.FieldLayout.Settings.HeaderLabelAreaStyle = style;
}
style.Setters.Add(setter);
Hello Imad,
Could you please provide me with a screenshot of the arrangement of the data in the GroupByRecord that you are expecting.
Thanks in advance.
Thank you for your reply.
It was the in my first post. Here it is agian.