FlexGrid has a property called AllowDragging, which takes an enum and determines what users can and cannot do to a grid. We can tie this enum to a button that will allow a user to lock in rows and columns so they cannot be moved around the grid.
Steps to Complete:
1. Tie a method to the button click event
2. Set the allowDragging property of FlexGrid to '0', which prevents dragging and dropping columns
Tie a method to the button click event
Since this sample uses a button, we'll create a method called stopDragAndDrop(), which we'll then tie to the click event of the button.
Set the allowDragging property of FlexGrid to '0', which prevents dragging and dropping columns
Now, when the button is clicked, users won't be able to drag and drop columns inside of the grid.