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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Issue with the covered cell

Thread ID:

Created:

Updated:

Platform:

Replies:

53662 Dec 18,2006 05:44 PM UTC Dec 19,2006 11:55 AM UTC WinForms 5
loading
Tags: GridControl
Prashant
Asked On December 18, 2006 05:44 PM UTC

Hi

I am facing one weird problem with the covered cells in my grid.

I have made first covered cell of the grid as frozen so that they donot go out of sight. But this has introduced one issue.

When I press Tab button the next cell get selected. Now if the table is bigger than the view than on pressing Tab on last visible cell we are making the second covered cell in the grid as invisible. If the case arises (and this is common behavior which I am noticing with coverd cell) such that only half of the grid cell gets disappeared than some times the bitmap icon appearing in the covered cell started appearing on Top of the frozen covered cell.

Note that frozen covered cell is read only. Find attached the bitmap to explain the problem.

Can you tell me what needs to be done for handling this issue?

Thanks and Regards
Prashant Agarwal

coveredCellsDisplayissue.zip

Administrator [Syncfusion]
Replied On December 19, 2006 04:45 AM UTC

Hi Prashant,

Regarding the frozen covered cells issue, We would suggest you to increase the FrozenCount property to the covered cells to view the text completely.

Best Regards,
Haneef

Prashant
Replied On December 19, 2006 08:17 AM UTC

Hi Haneef,

Thanks for the response. But can you tell me how to do that as at present by frozen count is 3 (which is equivalent to the covered cell size). I am using the function call of Cols->FrozenCount = 3.

Is there a different way to set up the FrozenCount to Covered cells?

Thanks and Regards
Prashant Agarwal

Administrator [Syncfusion]
Replied On December 19, 2006 09:23 AM UTC

Hi Prashant,

Before setting the FrozenCount property, you can handle the Model.FrozenColCountChanged event to recalculate the covered frozen value in a Grid. Here is a code snippet to show this.

private void Model_FrozenColCountChanged(object sender, GridCountChangedEventArgs e)
{
GridModel model = sender as GridModel;
int iFrozenCount = model.Cols.FrozenCount;
foreach(GridRangeInfo range in this.gridControl1.Model.CoveredRanges)
{
if( range.IntersectsWith(GridRangeInfo.Col( iFrozenCount)) )
{
iFrozenCount = range.Right;
}
}
model.Cols.FrozenCount = iFrozenCount;
}

Please refer to the attached sample for more details.
GCCoveredFrozenCount.zip

Best Regards,
Haneef

Prashant
Replied On December 19, 2006 10:15 AM UTC

Hi Haneef,

The solution suggested by you in not solving my issue. I am still getting some of the hiden text on top of the frozen read only covered cells. Also the problem seems to be appearing only with cells containing bitmaps as shown in the attached image with the first mail in the string.


Do you have any clue as to why the text behind the frozen cell is appearing on top of it? Is this a known issue of Syncfusion or am I doing some wrong settings.

Thanks and Regards
Prashant Agarwal

>Hi Prashant,

Before setting the FrozenCount property, you can handle the Model.FrozenColCountChanged event to recalculate the covered frozen value in a Grid. Here is a code snippet to show this.

private void Model_FrozenColCountChanged(object sender, GridCountChangedEventArgs e)
{
GridModel model = sender as GridModel;
int iFrozenCount = model.Cols.FrozenCount;
foreach(GridRangeInfo range in this.gridControl1.Model.CoveredRanges)
{
if( range.IntersectsWith(GridRangeInfo.Col( iFrozenCount)) )
{
iFrozenCount = range.Right;
}
}
model.Cols.FrozenCount = iFrozenCount;
}

Please refer to the attached sample for more details.
GCCoveredFrozenCount.zip

Best Regards,
Haneef

Administrator [Syncfusion]
Replied On December 19, 2006 11:55 AM UTC

Hi Prashant,

We tried to reproduce this in V4.x by just implement covered cell with frozen columns/rows in a grid, but could not get this issue. Maybe I am not following the steps that you are doing. Attached sample working fine here. Can you post a small sample showing this problem or tell us how to see it in the Browser sample/Attached sample?

Here is a sample for implementing it.
ModifiedGCCoveredFrozenCount.zip

If you can provide more information, we can try to suggest some solution.

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.

Warning Icon 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.Close Icon

;