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.
Syncfusion Feedback

Format question

Thread ID:





40574 Feb 7,2006 08:41 AM Feb 7,2006 04:21 PM Windows Forms 1
Tags: GridControl
Administrator [Syncfusion]
Asked On February 7, 2006 08:41 AM

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 04:21 PM

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.

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