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
20
How to Select multiple rows in Grid
posted

Hi

I have to handle drag and drop in infragistics grid. i have to drag multiple rows from the grid to treeview

node. But i couldnt enable my grid to have multiple selection. please give me any direction how to

proceed..

Parents
No Data
Reply
  • 12333
    posted

    Hi there,

    Here is the code that will allow you to enable multi-select rows (or cells):

    private void ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e)
            {

    //Configure what happens when you click cells / rows

                e.Layout.Override.CellClickAction = Infragistics.Win.UltraWinGrid.CellClickAction.RowSelect;

    //OR

               e.Layout.Override.CellClickAction = Infragistics.Win.UltraWinGrid.CellClickAction.CellSelect;

     

     

    //Configure the "Multi-select" functionality
                e.Layout.Override.SelectTypeCell = Infragistics.Win.UltraWinGrid.SelectType.Extended;
                e.Layout.Override.SelectTypeRow = Infragistics.Win.UltraWinGrid.SelectType.Extended;

    }

Children