Hi,
I am using xamdatagrid and creating fields in code behind and applying order to it.
Field field = new Field();
field.Name="Chandu";
field.Column = 1;
filedLayout.Fileds.add(field);
Like the same i am creating lot of fieldsin each grid in tabgroup pane.
I have xamdockmanger..and i have tabgroup pane inside to it.
Each tab have one xamdatagrid..when tab is switching..order of fields in xamdatagrid are changing.
How can i fix it?
Can any one can help to resolve the issue?
Hello Chandra,
I have been looking into your question and in order to accept the defined positions of the fields, first you need to set the ‘AutoArrangeCells’ property of the FieldLayout to “Never” :
fieldLayout.Settings.AutoArrangeCells = AutoArrangeCells.Never;
Let me know, if you need any further assistance on this matter.
Hi Yanko,
Thanks for your reply...
In your sample
>>
FieldLayout fieldLayout = new FieldLayout(); Field field1 = new Field(); field1.Name = "Id"; field1.Column = 2; fieldLayout.Fields.Add(field1); Field field2 = new Field(); field2.Name = "Current"; field2.Column = 1; fieldLayout.Fields.Add(field2); Field field3 = new Field(); field3.Name = "Max"; field3.Column = 3; fieldLayout.Fields.Add(field3); (sender as XamDataGrid).FieldLayouts.Add(fieldLayout);
I ran the application according to column number..data is not displaying.
"Current" Field has to come at 1st column as per the code. but "Id" field is coming as 1st.
then even though we assigned column number ..xamdatagrid is not displaying mentioned order.
Waiting for your reply..
Thank you,
Chandra
I have been looking into your issue and I have not managed to reproduce it. Would you please tell me which version of NetAdvantage for WPF you are using ?
I am attaching my test sample application(DockManagerWithDataGrid.zip).
Please modify it or attach your own one in order to reproduce the issue on my side.
Looking forward to hearing from you.