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.

Problem with custom cell type

Thread ID:

Created:

Updated:

Platform:

Replies:

7609 Oct 2,2003 08:38 AM Oct 3,2003 10:50 AM Windows Forms 1
loading
Tags: GridControl
Alberto del Barrio
Asked On October 2, 2003 08:38 AM

Hi, I've created a couple of custom cell types for the grid. Each of them has a custom property for its value; one is a bool and the other a string. Though the code for both is the same, when I try to set the value of the string property with this code: public bool Valor { get { return (bool) style.GetValue(ValorProperty); } set { style.SetValue(ValorProperty, value); } } It reports an error saying "Input string was not in a correct format". Navigating through Syncfussion's code, I've noticed the problem is that in Syncfusion.Styles.InfoStyleStore, under the method public void SetValue(StyleInfoProperty sip, object value) the string containing the value is trying to be converted into an Int16. What am I doing wrong? You can see the attached file for the rest of the code for the rest of the code for the custom cell that's not working, which is equals to the one that works except for the type of the property Valor. TIA

Administrator [Syncfusion]
Replied On October 3, 2003 10:50 AM

As already mentioned in my Dtrac incident response ... From looking at the code I can't find anything wrong at first glance. It would help me a lot to have a small sample project to debug and step into and see where the exception is thrown. Stefan

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.

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.

;