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

Format question

Thread ID:





40574 Feb 7,2006 01:41 PM UTC Feb 7,2006 09:21 PM UTC WinForms 1
Tags: GridControl
Administrator [Syncfusion]
Asked On February 7, 2006 01:41 PM UTC

After a lot of frustation i''m unable to explain why this does not work: GridWebControl1.GridModel.ColStyles[posCol].Format = "0:n"; In the grid the format is not applied. Is there any condition for this to work ? string d = myDataRow["quantity"].ToString(); GridWebControl1.GridModel[i, j ].CellValue = d; where d=15200 and the style is not applied. It is the same for anyother format Thanks

Administrator [Syncfusion]
Replied On February 7, 2006 09:21 PM UTC

Hi Paul, Sorry for the inconvenience caused. Here is something you can try to set the format by adding another Grid to the StockQuotes sample: this.GridWebControl2.GridModel.ColStyles[1].Format = "00.00"; this.GridWebControl2.GridModel[1, 1].CellValue = 15200; Note that formatting will not work if you pass a string as in: this.GridWebControl2.GridModel[1, 1].CellValue = "15200"; Hope this answers your question. Regards Arun


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

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