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
I tried it in the Feature Browser and it is possible to drag and drop a column on the left of the fixed to near edge column.
I created a sample with this code. I am unable to move the fixed column or to drag other columns to the left of it. Please let me know if this works for you.
<Window x:Class="WpfApplication1.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="MainWindow" Height="350" Width="525" xmlns:igDP="http://infragistics.com/DataPresenter"> <Grid> <StackPanel> <igDP:XamDataGrid Name="xamDataGrid1" BindToSampleData="True" > <igDP:XamDataGrid.FieldLayouts> <igDP:FieldLayout> <igDP:FieldLayout.Fields> <igDP:Field Name="name" FixedLocation="FixedToNearEdge" /> </igDP:FieldLayout.Fields> </igDP:FieldLayout> </igDP:XamDataGrid.FieldLayouts> </igDP:XamDataGrid> </StackPanel> </Grid></Window>
Elizabeth AlbertLocalization Engineer
Yes, I need to enable the possibility to configure and move all other columns.
Does column moving need to be enabled? You can disable field moving.
ok, but the user will still be able to drag an other column on the left of the "fixed" one.