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
155
WinGrid Multiple Selection Problem
posted

Hi ,

Can anyone solve this problem for me

1) In my ultragrid i have multiple selection of rows and

2) When a user clicks on a particular Row, at any point that's not an enditable field, the cursor should default move to the Editable field in the row

i have written the code like

private void ugCellMerging_AfterSelectChange(object sender, AfterSelectChangeEventArgs e)
        {
            if (ugCellMerging.ActiveRow != null)
            {
                if (ugCellMerging.ActiveCell.CanEnterEditMode == false)
                {
                    ugCellMerging.ActiveCell = ugCellMerging.ActiveRow.Cells[2];
                    ugCellMerging.PerformAction(UltraGridAction.EnterEditMode, false, false);
                }
            }
        }

by writting this code my 2 point is working but multiple selection is going off

how can i achive both multiple selection as well as cursor moving to editable field on a particular row click

 

Regards

Priyanka

Parents
  • 469350
    Suggested Answer
    Offline posted

    Hi Priyanka,

    If a cell in the grid is in edit mode, then the selection is cleared. There is no way around this. They are mutually exclusive states.

Reply Children
No Data