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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Floating cell text is hidden when DataProvider is changed

Thread ID:





21983 Nov 30,2004 03:47 PM UTC Nov 30,2004 04:11 PM UTC WinForms 1
Tags: GridControl
Asked On November 30, 2004 03:47 PM UTC

I have found the following issue, which I believe is a bug in version of the Essential Grid. When using a custom DataProvider object with the grid, and the number of columns is increased by changing the data provider, floating cells are incorrectly drawn when you click on them. As far as I can tell from the docs, the only thing that is necessary after changing the DataProvider is to call the ResetVolatileData method. However, doing this does not fix the problem. I have attached a ZIP file that demonstrates this problem. To reproduce: 1. Run the attached application 2. Click on cell D1, which is the right side of a floating cell. The application behaves as expected, the text in D1 is still displayed. 3. Click the "Switch" button, which resets the DataProvider to a different object and resets the volatile data 4. Click on cell C1, which is again the right side of a floating cell. In this case the text disappears from the grid. Clicking elsewhere (like cell B1) will replace the text. I have also noticed that creating a new grid each time, rather than just replacing the DataProvider will cause this bug to go away, so it must be related to something that happens when the DataProvider is changed. Is there a workaround or fix in a newer version of the grid? GridFloatingCells_2513.zip GridFloatingCells_9070.zip

Administrator [Syncfusion]
Replied On November 30, 2004 04:11 PM UTC

Hi Greg, thanks for reporting this problem. We were not aware of it and it has not been fixed. We will work on that. To workaround it do the following: private void btnSet_Click(object sender, System.EventArgs e) { _gridView.ResetVolatileData(); if (_useProvider1) { _dp = new DataProvider2(); _gridView.Model.DataProvider = _dp; } else { _dp = new DataProvider1(); _gridView.Model.DataProvider = _dp; } _useProvider1 = !_useProvider1; _gridView.FloatCellsMode = GridFloatCellsMode.None; _gridView.FloatCellsMode = GridFloatCellsMode.BeforeDisplayCalculation; _gridView.FloatingCells.EvaluateFloatingCells(GridRangeInfo.Table()); _gridView.Refresh(); } Temporarily setting _gridView.FloatCellsMode = GridFloatCellsMode.None; will clear out the float cell pool with its cache. Stefan


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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

Live Chat Icon For mobile
Live Chat Icon