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

Help to format a column in grid group control

Thread ID:





100279 Jul 21,2011 04:02 PM UTC Jul 27,2011 10:31 AM UTC WinForms 1
Tags: GridControl
Asked On July 21, 2011 04:02 PM UTC

I try the following code, and format does not work, if I use an arraylist as the datasource, the format work, any idea why?

DataTable dt = new DataTable();
System.Data.DataRow dr = dt.NewRow();
DataColumn dc = new DataColumn("id");

dc = new DataColumn("amount");


dr[0] = "001";
dr[1] = 20.03;

this.gridGroupingControl1.DataSource = dt;
this.gridGroupingControl1.TableDescriptor.Columns[1].Appearance.AnyRecordFieldCell.Format = "$##,##0.##";

Ragamathulla B [Syncfusion]
Replied On July 27, 2011 10:31 AM UTC

Hi Rayzhahng,

We deeply regret for the delay.

You can achieve your desired format using ‘CellvalueType’ property. For more details follow the code.

this.gridGroupingControl1.TableDescriptor.Columns[1].Appearance.AnyRecordFieldCell.CellValueType = GetType(double);

Let me know if you have any concern.

Ragamathullah B.


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