Hi,
I need to create a XamDataGrid with configurable columns. But the first column on the left should always be displayed on the left and never be moved from there.
- I need to disable the possibility to drag and drop this column.
- I need to prevent some other columns to be draged and droped on the left of this column.
does any body has suggestions?
Thanks
Hello croesusdev,
You can hide the "fix" button by setting the FixedButtonVisibility property on that column.
If the user tries to drag and drop it, you can check which Field it is, and if it's the fixed one, you can cancel the FieldPositionChanging event.
Elizabeth AlbertLocalization Engineer
The functionnality of "fixed columns" available is not what I need. Has it is describe in your documentation :
"The xamDataPresenter™ control and the xamDataGrid™ control allow your end users to fix fields so they are not scrolled out of view."
But, at all time, the user can remove the column from the fixed section. He can drag an drop the column to the dragable section. I dont want the column not to be "scrolled out" I want it to stay on the "near" edge. I want to prevent the user to replace it from its position.
Example, the ExpansionIndicator or RecordSelector are always on the left. The user cannot put them in the midle. That's what I need.
Thanks.
It sounds like this can be done with column fixing. If you set the first column to be fixed, then it cannot be dragged, and other columns cannot be dragged to the left of it. It will also always be displayed.
Here is some documentation on fixing columns:
About Fixed Fields
Enable Fixed Fields
Fix Fields
You'd want to fix it to the "Near" edge, meaning the left side.
Let me know if you have any other questions about this.