SfDataGrid allows you to disable drag and drop option between FrozenColumns and non-Frozen columns by handling “QueryColumnDragging” event. QueryColumnDragging event occurs multiple times when you drag and also drop the column. You can use Reason property in QueryColumnDraggingEventArgs to identify the reason for the occurrence whether the event is fired while start dragging or dragging or dropping.
The QueryColumnDraggingEventArgs object has following properties:
Based on the Reason property in QueryColumnDraggingEventArgs, you can handle the drag and drop option. Here when the Reason is QueryColumnDraggingReas on.Dropping and if the column is dragged from frozen region to non-Frozen region or non-frozen region to frozen region, then you can cancel the dropping action by setting e.Cancel to true.
You can refer to the following sample links to disable the drag and drop between frozen column and non-frozen column for WPF platforms.
|Article ID:||Published Date:||Last Revised Date:||Platform:||Control:||.NET Framework:|
or the page will be automatically redirected to sign-in page in 10 seconds.