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

Dynamic change cell format

Thread ID:





62762 Jun 21,2007 01:46 PM UTC Jun 21,2007 03:03 PM UTC WinForms 1
Tags: Grouping
Asked On June 21, 2007 01:46 PM UTC

I am trying to dynamic change cell format to overide the column format, but getting nowhere.

Somewhere after InitializeComponent() I have

((SCAGridColumnDescriptor)(this.grid1.TableDescriptor.Columns["A"])).Appearance.AnyRecordFieldCell.Format = "#,###;-#,###;0";

Then I have a grid1_QueryCellStyleInfo(object sender, GridTableCellStyleInfoEventArgs e)

Here I have e.Style.Format = "#,###.#;-#,###.#;0.0";
for certain conditions. I know this statement is executed because it passes the break point on this statement, but it does nothing on the display result.

My question is which Format should I change to overwrite the column format for this particular cell?

Thanks in advance.

haneefm [Syncfusion]
Replied On June 21, 2007 03:03 PM UTC

Hi JP,

If you just want to format the text that is displayed in a cell, you can handle the TableControlDrawCellDisplayText and set e.DisplayText there to easily control what text is drawn in the cell.

Here is a forum thread that discuss with similar issue.

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

or the page will be automatically redirected to 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