This is a migrated thread and some comments may be shown as answers.

FormatString in HtmlViewDefinition

0 Answers 67 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Hossein
Top achievements
Rank 1
Hossein asked on 31 Mar 2014, 07:53 PM
Hi

I have used the following code to create a radgridview with Multi-Row's header (Winform Applications).
Everything is ok, but, the FormatString does not work!

Could you allow me tho know, how I could set FormatString in HtmlViewDefinition, Please?

Thanks
Hossein

this.htmlView = new HtmlViewDefinition();
this.htmlView.RowTemplate.Rows.Add(new RowDefinition());
 
this.htmlView.RowTemplate.Rows[0].Cells.Add(new CellDefinition("Avarez"));
this.htmlView.RowTemplate.Rows[0].Cells.Add(new CellDefinition("Maliyat"));
 
 GridViewDataColumn Maliyat = (GridViewDataColumn)this.radGridView1.Columns["Maliyat"];
Maliyat.FormatString = "{0:#,###}";
 
 this.radGridView1.ViewDefinition = htmlView;

No answers yet. Maybe you can help?

Tags
GridView
Asked by
Hossein
Top achievements
Rank 1
Share this question
or