Hi all,
I got the problem in the syncfusion gird
when i include this line..
this.Bidsheet.Model.CoveredRanges.Add(GridRangeInfo.Cells(FromRow,1,ToRow,1));
to combine Rows.
Its Combine Rows well but the problem is the loading process taking so long time.
its 5 to 10 times slower when i excluded that line.
Give me suggestion to speed up the process.
thanks in advance.
Leema
AD
Administrator
Syncfusion Team
January 18, 2007 03:18 PM UTC
Hi Leema,
Can you try this way and see if there is improvement in the performance.
this.gridControl1.BeginUpdate();
//
// Code to CoverRange
this.Bidsheet.Model.CoveredRanges.SetCoveredRange(GridRangeInfo.Cells(FromRow,1,ToRow,1),true);
//
this.gridControl1.EndUpdate();
Best Regards,
Haneef
LE
leemarose
January 19, 2007 05:38 AM UTC
Hi hannef!
Another problem in my grid with coverrange is that-
When i delete a set of records with one checkbox(these records are covered through coverrange).the whole gird collape with coverage range overlapping on each other.
but when i close the form and open again,it displays in proper format and cover range is exact in the grid.
why this happening,i used grid.refesh() method but nothing worked out.
any other way pls suggest.
regards
Leema
AD
Administrator
Syncfusion Team
January 19, 2007 07:20 PM UTC
Hi Leema,
The reason for collaping the Grid in your case is that the Model.CoveredRange collection is not resetted properly. Befor deleting the set of records, you should remove the proper covered range by using the FindRange method. Here is a code snippet
this.gridControl1.Model.Rows.RemoveRange(1,1);
//Find the Range..
GridRangeInfo range = this.gridControl1.Model.CoveredRanges.FindRange(1,2);
//Remove the proper covered range
this.gridControl1.Model.CoveredRanges.Remove(range);
//add the new Range
this.gridControl1.Model.CoveredRanges.Add(range);
Best Regards,
Haneef
LE
leemarose
January 22, 2007 07:35 AM UTC
Hi haneef;
I have to delete records from Row 1 to 7.
These Rows comes under one Coverage area.
so, as per ur coding i gave..
this.dgTransactionList.Model.Rows.RemoveRange
(1,7);
//I can specify only starting row and Ending Row
but in this line how can i specify Rowindex and Colindex for getting range..
GridRangeInfo range = this.dgTransactionList.Model.CoveredRanges.
FindRange(rowindex,Columnindex).
Another thing i dont want to create new range.
just I want delete the set of records
belonging to one coverage.once deleted,the coverage area belong the one deleted should occupy its place without collapsing and coverage area of the records should be displayed in the grid quite neatly.
Can u suggest me a solution for my problem.
regards
Leema
LE
leemarose
January 22, 2007 07:57 AM UTC
Hi haneef!
How to clear all the Coverange created in the Datagrid so that i can recreate these Coverrange
again and load the grid.
Regards
Leema
AD
Administrator
Syncfusion Team
January 22, 2007 05:52 PM UTC
Hi Leema,
How to clear all the Coverange created in the Datagrid?
>>>>>
Try this code
this.gridControl1.Model.CoveredRanges.Clear();
Best Regards,
Haneef