I want to use grouping functionality of XamDataGrid which works fine but while doing drag-drop for a particular column to header if user drops it on the another columns it shows as below
Before Drag-Drop
After Drag-Drop
I want to restrict user to drop this column on another column. Anyone knows how to restrict this?
You can set the FieldSettings->AllowFieldMoving to either WithinLogicalRow so that all the items stay in the row in which they were defined which in your case would mean a flat layout or you can set it to No to prevent reordering of fields but should still allow dragging fields into the group by area.
Andrew, when any of the column is dragged and dropped to non visible area, the column is not getting dropped. Is there any solution or work arounds for this problem?
In our scenario the grid has 12 columns and 6 columns are visible to the users. When we pick any column and try drop in between 8th and 9th column which are invisible intitially, the column is not getting dropped in between these two columns.
I can't say what is happening just based on your description. Since it isn't related to the question in this thread I would recommend that you create a new thread and attach a sample that demonstrates the issue.