HA
haneefm
Syncfusion Team
July 11, 2007 09:54 PM UTC
Hi,
By default The TextBox celltype uses in a grid cell. The Filtered TextBox celltype uses a GridDropDownEditPartControl as editing control. But if you set the UseRightToLeftCompatibleTextBox property then grid uses the OriginalTextBox celltype in a grid cell. The OriginalTextBox celltype uses a Wndows.Forms.TextBox as the editing control. This different base control is the reason they behave differently. One way you can resolve this by using the GridOriginalTextBoxControl instead of GridDropDownEditPartControl. Below is a code snippet
GridOriginalTextBoxControl objDropDownTextBox = ( GridOriginalTextBoxControl )CurrentCell.Renderer.Control;
//Select all text in the filter cell by default.
objDropDownTextBox.SelectAll();
objDropDownTextBox.Focus();
Best regards,
Haneef