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
715
KB010086 - How to drag and drop rows in a single WinGrid
posted

Hi,

I am  trying to move a row within the same band and within the same parent row.  I copied the code from the KB010086 example and it did not work for me.  All the events fired and in stepping thru the code everything worked as expected,  however, the row was not moved.  The row that was selected and the target index location were correct.  Is there another property that I need to set?   Is a multi-band grid an isuue for Drop and Drag?   

I am using v. 7.3

 Thanks

Rich

 

  • 4555
    posted

     Hi,

    I downloaded the Article and I got it to work, I think what you are missing is  setting the SelectType in the InitializeLayout:

    Your initialize layout would look as follows: 

    private void ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e)
            {
                ultraGrid1.AllowDrop = true;
                e.Layout.Override.SelectTypeRow = SelectType.ExtendedAutoDrag;
                e.Layout.Override.RowSelectors = Infragistics.Win.DefaultableBoolean.True;
                e.Layout.Override.CellClickAction = CellClickAction.RowSelect;

            }

  • 210
    Offline posted

    I am facing exact the same problem.

    Also using v.7 vol3

     

    Regards

    Jens