We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

how to set cursor position in cell

i have a grouping grid and in that i have a combo box column, i want to set position of cursor on clicking that cell. how can i do this? I think it is not possible.

1 Reply

VK Vinish Kumar K Syncfusion Team September 23, 2013 05:32 AM UTC

Hi Sandeep,

Thank you for your interested in Syncfusion products.

We have analyzed the reported query in our end. you can set the starting position of current cell using the selection start of TextBox. Please refer the below code.

        void gridControl1_CurrentCellShowingDropDown(object sender, GridCurrentCellShowingDropDownEventArgs e)
            GridCurrentCell cc = this.gridControl1.CurrentCell;

            GridComboBoxCellRenderer rend = cc.Renderer as GridComboBoxCellRenderer;
            rend.TextBox.SelectionStart = 5;

Please let me know if you have any concerns.

Vinish K.

Live Chat Icon For mobile
Up arrow icon