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 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.
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 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.
I am just checking if you require any further assistance on the matter.
Could you please create a new thread regarding your new issue ? This way other visitors of our community will be able to get benefit from your experience.
Thank you for the understanding.
Thanks for your reply.
I am facing one problem, when i tried to open filter dropdown ..i am observing that data is repeating.
I have attached the sample for your reference..
In the example, u can observe as Filter dropdown item have "Rob(Rob)" but i want to display only Rob
Could you please help me ..how to fix this issue?
Thank you for your feedback. I am glad that you have managed to solve your issue.
I tried with your suggestion..but it didnt worked.
But i am able to fix the solution through
field.FixedLocation = FixedFieldLocation.FixedToNearEdge;
Depends on which column no to be freezed, i am able to achieve it.
Thanks for your help!!!