Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
415
Drag and Drop WinGrid Column Header
posted

I have two WinGrids in my application. One holds a filter condition the other holds the data with this filter condition applied. The filter grid contains a column for the user to select a field name. I'm trying to drag the column header of the grid contining the data to the filter grid so that the field name can be selected when the user drops the column header in the filter field name. Can this be done?

Parents
No Data
Reply
  • 469350
    Suggested Answer
    Offline posted

    BestSoftware said:
    Can this be done?

    If AllowColMoving is turned on, then the grid automatically handles the dragging and dropping of columns. But it doesn't really use the built-in drag and drop functionality of DotNet, it's just simulated. So you will not get a drop event or anything like that on any other controls.

    So the only way to do this would be to turn off the grid built-in column dragging (AllowColMoving) and then handle all drag operations on a column yourself. If you still want the user to be able to move columns around, then I suspect this would be quite difficult and complex.

Children
No Data