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.
Unfortunately, activation email could not send to your email. Please try again.

how to set cursor position in cell

Thread ID:

Created:

Updated:

Platform:

Replies:

112382 Sep 19,2013 07:00 AM Sep 23,2013 01:32 AM ASP.NET Web Forms (Classic) 1
loading
Tags: Grouping
Sandeep
Asked On September 19, 2013 07:00 AM

Hi,
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 01:32 AM

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.

Regards,
Vinish K.


CONFIRMATION

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.

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.

;