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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

how to set cursor position in cell

Thread ID:





112382 Sep 19,2013 11:00 AM UTC Sep 23,2013 05:32 AM UTC ASP.NET Web Forms (Classic) 1
Tags: Grouping
Asked On September 19, 2013 11:00 AM UTC

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.

Vinish Kumar K [Syncfusion]
Replied On 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.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon