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

About Column in RadGridView

1 Answer 38 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Hưng Phạm
Top achievements
Rank 1
Hưng Phạm asked on 30 Jun 2010, 09:53 AM
Hi Telerik
i have a issue as below:
   i have 3 columns 
         1 - price
         2 - amount
         3 - price * amount
and a class as below:
 public class Sale
{
     public double price
     {
           get;
set;
     }
     public double amount
     {
            get;
set;
     }
}
and I init data for RadGridVIew from ObservableCollection<Sale>()
RadGridView displayed 2 columns: price,amount, however, i want to display 3th column, with header = "total" and this column = price * amount.
i have to how to display as i want
RadGridView displayed as below:
 price          amount
 240                    10
 100                    20
__________________________
I want in RadGridView as below:
 price          amount            total
 240                    10           2400$
 100                    20           2000$

thanks and regards

1 Answer, 1 is accepted

Sort by
0
Milan
Telerik team
answered on 30 Jun 2010, 10:14 AM
Hi Hưng Phạm,

Could you please take a look at this blog post.


Kind regards,
Milan
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
GridView
Asked by
Hưng Phạm
Top achievements
Rank 1
Answers by
Milan
Telerik team
Share this question
or