Hi,
I have a DataGrid where the property AllowFieldMoving is set to Yes. But I have some icons that should always be displayed on the left. They should never be mouved. But the rest of the columns can. The Property AllowFieldMoving should be off on this field only.
Is there a way to do this in xaml or do I need to listen to an event and manage it in the code behind?
Thanks
Karine.
Hello girardkarine,
In the new 9.1 version of the XamDataGrid there is functionality for fixed fields. Please refer to this documentation for more details and code samples.
Hi Aaron,
I tried the FixedField functionnality of the 9.1 version. It does'nt correspond to my needs. I dont want the column to stay on top of the others while the user scroll. I want to disable the possibility to MOVE the column. In other words, I want to set the "Column" property of the field in the xaml layout définition and to never change it.
I'm curious to know what your use case is. I mean we intentionally chose to put the AllowFieldMoving on the FieldLayout to either enable or disable it for all fields in a field layout because even if you were to disable field moving on a particular field, its position can change implicitly because other fields can be moved around that field thereby moving/changing the position of the field for which you disabled moving.
I need to have a column on the left that shows icons that should always stay ont the left. It should never be hidden, never moved and never sorted. That column does'nt show any label. Its like the column that shows the black arrow for the active record. It also need to be fixed, but that works fine with the 9.1 version.