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: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Repeated grid[row,column].CellValue retrieval

Thread ID:





15170 Jun 13,2004 10:29 PM UTC Jun 28,2004 05:14 PM UTC WinForms 2
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);
	style = new GridStyleInfo();

object cellValue = style.CellValue;

Replied On June 28, 2004 05:14 PM UTC



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