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.

Coverage

Thread ID:

Created:

Updated:

Platform:

Replies:

54812 Jan 18,2007 01:21 AM Jan 22,2007 12:52 PM Windows Forms 6
loading
Tags: GridControl
leemarose
Asked On January 18, 2007 01:21 AM

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

Administrator [Syncfusion]
Replied On January 18, 2007 10:18 AM

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

leemarose
Replied On January 19, 2007 12:38 AM

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



Administrator [Syncfusion]
Replied On January 19, 2007 02:20 PM

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

leemarose
Replied On January 22, 2007 02:35 AM

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

leemarose
Replied On January 22, 2007 02:57 AM

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

Administrator [Syncfusion]
Replied On January 22, 2007 12:52 PM

Hi Leema,

How to clear all the Coverange created in the Datagrid?
>>>>>
Try this code
this.gridControl1.Model.CoveredRanges.Clear();

Best Regards,
Haneef

CONFIRMATION

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.

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.

;