Home Forums WinForms controls Xceed Grid for WinForms Column Header drag drop

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #17212 |

    HI,

    Can anyone please assist me, how can i restrict drag and drop property of Column Headers in Xceed grid.

    Thanks,

    Satyajeet

    Imported from legacy forums. Posted by Satyajeet (had 1069 views)

    User (Old forums)
    Member
    Post count: 23064

    Hi,

    you can’t restrict the drap and drop functionnallity on the Column Headers but you can restrict the possible actions.

    To disable the two possible drag and drop actions on the column headers (changing the display order of the columns from the original layout and grouping). 

    foreach(Row row in m_gridControl.FixedHeaderRows)
      {
        if(row is ColumnManagerRow)
          ((row) as ColumnManagerRow).AllowColumnReorder = false;
        else
          if(row is GroupByRow)
            ((row) as GroupByRow).AllowGroupingModification = false;
      }

    Imported from legacy forums. Posted by Ghislain (had 1228 views)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.