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: November 16, 2018).
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:





46533 Jul 14,2006 12:19 PM UTC Jul 14,2006 03:24 PM UTC WinForms 2
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 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


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.


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