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.

Dynamic change cell format

Thread ID:

Created:

Updated:

Platform:

Replies:

62762 Jun 21,2007 09:46 AM Jun 21,2007 11:03 AM Windows Forms 1
loading
Tags: Grouping
JP
Asked On June 21, 2007 09:46 AM

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 11:03 AM

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.
http://www.syncfusion.com/support/Forums/message.aspx?&MessageID=61549

Best regards,
Haneef

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.

;