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

Custom int style property - An unhandled exception of type ''System.ArgumentOutOfRangeException'' occurred in Syncfusion.Grid.Windows.dll

Thread ID:

Created:

Updated:

Platform:

Replies:

46533 Jul 14,2006 12:19 PM UTC Jul 14,2006 03:24 PM UTC Windows Forms 2
loading
Tags: GridControl
Colin Bolton
Asked On July 14, 2006 12:19 PM UTC

Firstly my specs: mc++ developed in VS 2005 version 8 .NET 2.0.5072 Win Xp SP 2 Essential Grid 4.1.0.62 Secondly my problem: I am trying to add a custom style property to cells in my grid. I have extended the GridStyleInfoCustomProperties object as in the examples. I want to add an int property called Master. I have attached the files which extend the property object. Initially (the default) the Master os set to 0 and this works fine. If I subsequently set the Master property externally to a vaule other than 0 then this appears to work fine (i''ve not checked them all ;-) ). However, if I try to set the Master property to 0 then an ArgumentOutOfRangeException error is thrown by the Syncfusion.Grid.Windows.dll. The exact text is: ------------------------------------------ An unhandled exception of type ''System.ArgumentOutOfRangeException'' occurred in Syncfusion.Grid.Windows.dll Additional information: Specified argument was out of the range of valid values. ------------------------------------------- Is this related to the fact that 0 is being treated as a null pointer somewhere or is this a known bug or ?????? Any help or hints gratefully welcomed, Colin

example11.zip

Colin Bolton
Replied On July 14, 2006 12:56 PM UTC

An update. It seems that I was misled when thinking that using a value other than 0 would work and that this appears to have been a freak case which I can not repeat. This leads me to suspect that I have not implemented the property correctly, although I think it is all as it should be. Can anyone stop the mistake?? Colin

Colin Bolton
Replied On July 14, 2006 03:24 PM UTC

Ah, user error I think! Having swapped the row and col numbers round i was trying to set a style property which did not exist, in which case the error makes more sense! This is what you get for being tired and working on a friday afternoon.

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

;