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

Is it possible to set ImeMode for a column?

Thread ID:





60756 May 10,2007 10:53 PM UTC May 10,2007 11:16 PM UTC WinForms 1
Tags: GridControl
Craig Timmerman
Asked On May 10, 2007 10:53 PM UTC

We have a grid where some columns can have multi-byte text entered and others where we need to disable the ImeMode.

Is there a was to disable the ImeMode for an entire column?

I have tried using the CurrentCellStartEditing event, with the following code in the handler:

GridTextBoxCellRenderer cr = TheGrid.CurrentCell.Renderer as GridTextBoxCellRenderer;
if (cr != null && cr.TextBox != null)
if (TheGrid.CurrentCell.ColIndex == 1)
cr.TextBox.ImeMode = ImeMode.Disable;
cr.TextBox.ImeMode = ImeMode.NoControl;

However that only gets the case where the user dbl clicks the cell. If they just activate the cell and start typing, I can't get the the textbox to set the ImeMode prior to the user entering characters.

So can the ImeMode be set for a column without having to trap events, if not how does one disable ImeMode prior to any characters being typed?

haneefm [Syncfusion]
Replied On May 10, 2007 11:16 PM UTC

Hi Ctim,

Try setting the ImeMode property of the GridTextBoxControl in a CurrentCellControlGotFocus event and let me know if this helps.

private void gridControl1_CurrentCellControlGotFocus(object sender, ControlEventArgs e)
if( e.Control is GridTextBoxControl )
GridControl grid = sender as GridControl;
GridCurrentCell cc = grid.CurrentCell;

GridTextBoxControl CellTextBox = e.Control as GridTextBoxControl;
if( cc.ColIndex == 1)
CellTextBox.ImeMode = ImeMode.Disable;
CellTextBox.ImeMode = ImeMode.NoControl;

Best regards,


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