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.

Index Error in code

Thread ID:





56166 Feb 9,2007 05:09 PM Feb 12,2007 10:59 AM Windows Forms 2
Tags: GridControl
Adnan Sohail
Asked On February 9, 2007 05:09 PM


I am getting this error when going scroll vetically in the grid.

error message is:
Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index

Can anyone tell me what am i doing wrong.



Administrator [Syncfusion]
Replied On February 9, 2007 07:03 PM

Hi Adnan,

I have modified the sample as per your requirement. Please try the attached sample and let me know if you are looking something different.

Sample : Custom.zip

Best regards,

The Modification done in two place of the sample. One is in SampleData class indexer property( SampleData.cs)and another one is in QueryCellInfo event of the TreeGrid(TreeGrid.cs).

Adnan Sohail
Replied On February 12, 2007 10:59 AM

Hi Haneef,

This is what i wanted .. thanks!


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.