Hi,
I need to change FlowDirection of Header Control. If the FlowDeirection of datagrid is set shouldn't all the controls inside grid should inherit it?
Looking forward to reply.
Thanks,
Imad.
I hadn’t heard back from you.
Please let me know if you have further questions.
I set the xamDataGrid FlowDirection to RightToLeft and the GroupByArea labels, the GroupByRecord labels, the Header labels and the value labels are all right justified.
Are you saying that you only want the labels that you marked in red to be right justified and you want all the other labels to be left justified?
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.
Hi people!
I am still waiting for your replies.
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;
style.Setters.Add(setter);
GroupByRecord gbr = e.Record as GroupByRecord;
gbr.FieldLayout.Settings.HeaderLabelAreaStyle = style;
}
The area in red is the header that I am talking about. Please let me know how to change its FlowDirection in code behind.
Will be grateful for your help.