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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How can I force the grid remove the space before and after the text in Combo box cell?

Thread ID:

Created:

Updated:

Platform:

Replies:

24448 Feb 4,2005 01:40 AM UTC Feb 4,2005 01:02 PM UTC WinForms 1
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On February 4, 2005 01:40 AM UTC

I use a GDBG. The combo box cell in GDBG always trim the text when I load it. How can I force the grid remove the space before and after the text in Combo box cell? Thanks.

Administrator [Syncfusion]
Replied On February 4, 2005 01:02 PM UTC

Hi David, try handling the grid.Model.QueryCellFormattedText event and use this code in your handler. e.Text = e.Style.Text.Trim(); e.Handled = true; Stefan

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.

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

;