Hi All.
I have about a 1500 items of CallItem class in List collection.
This is description of CallItem:
I geting all records and bindind they to GridView like this:
I have about a 1500 items of CallItem class in List collection.
This is description of CallItem:
| public class CallItem |
| { |
| private DateTime callDateTime; |
| public DateTime CallDateTime |
| { |
| get { return callDateTime; } |
| set { callDateTime = value; } |
| } |
| private String calledNumber; |
| public String CalledNumber |
| { |
| get { return calledNumber; } |
| set { calledNumber = value; } |
| } |
| private String logicCall; |
| public String LogicCall |
| { |
| get { return logicCall; } |
| set { logicCall = value; } |
| } |
| private Int64 callDuration; |
| public Int64 CallDuration |
| { |
| get { return callDuration; } |
| set { callDuration = value; } |
| } |
| private Double costWithTaxes; |
| public Double CostWithTaxes |
| { |
| get { return costWithTaxes; } |
| set { costWithTaxes = value; } |
| } |
| private Double costWithDiscount; |
| public Double CostWithDiscount |
| { |
| get { return costWithDiscount; } |
| set { costWithDiscount = value; } |
| } |
| private String abonentNumber; |
| public String AbonentNumber |
| { |
| get { return abonentNumber; } |
| set { abonentNumber = value; } |
| } |
| public CallItem(String abonentNumber, DateTime callDateTime, Int64 callDuration, String calledNumber, Double costWithDiscount, Double costWithTaxes, String logicCall) |
| { |
| this.abonentNumber = abonentNumber; |
| this.callDateTime = callDateTime; |
| this.callDuration = callDuration; |
| this.calledNumber = calledNumber; |
| this.costWithDiscount = costWithDiscount; |
| this.costWithTaxes = costWithTaxes; |
| this.logicCall = logicCall; |
| } |
| } |
I geting all records and bindind they to GridView like this:
| List<CallItem> items = GetAllItems(); |
| dataGridView.ItemsSource = items; |
| dataGridView.CreateFilterDescriptions(); |
And when I (or user) drag and dropping column (for example AbonentNumber) on grouping panel I need to waiting about 35 seconds.
if I heed to waiting about 35 seconds when I need grouping 1500 records then how long I need to waiting if I must grouping about 15000 records or 150000 records?
How i can increase performance of grouping in GridView? Or may be for my task I dont need to use GridView and grouping?