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.
Syncfusion Feedback

Repeated grid[row,column].CellValue retrieval

Thread ID:

Created:

Updated:

Platform:

Replies:

15170 Jun 13,2004 10:29 PM UTC Jun 28,2004 05:14 PM UTC Windows Forms 2
loading
Tags: GridControl
Paul Shotbolt
Asked On June 13, 2004 10:29 PM UTC

I am getting an unusual, non-deterministic exception when retrieving large numbers of CellValues one after the other. The exception I get is a "Hashtable Load factor too high" exception, called from a Hashtable.insert somewhere in the syncfusion grid code. I am guessing that syncfusion uses hashtables to cache the indexed CellValues, and these hashtables are sometimes (non-deterministically) overloaded when I access too many different CellValues too quickly. Has anyone else had this problem? I have managed to program around the error at the moment (separately storing the data in a two dimensional array, but this does have a high memory overhead), but I would like for a way to pull an entire row of cellvalues out of the table at a time, instead of accessing individual cells. Alternatively, if there was a way of accessing cell values without causing them to be cached, it would be handy to know what it is.

Administrator [Syncfusion]
Replied On June 13, 2004 10:49 PM UTC

Using an indexer to retrieve grid[row, col].CellValue triggers events (like QueryCellInfo). If this is a GridControl where the data is stored in the grid, you can avoid triggerring these events (which slow things down) by accessing the GridData directly.
GridStyleInfo style;
GridStyleInfoStore store = grid.Data[rowIndex, colIndex];
if (store != null)
	style = new GridStyleInfo(store);
else
	style = new GridStyleInfo();

object cellValue = style.CellValue;

paul
Replied On June 28, 2004 05:14 PM UTC

Thankyou.

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

;