Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1425
Changing FlowDirection of GroupByRecord Header
posted

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);

 

Parents Reply Children