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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

GridGrouping columns using different FNumericUpDown properties

Thread ID:

Created:

Updated:

Platform:

Replies:

63364 Jul 3,2007 09:28 AM UTC Aug 1,2007 10:24 PM UTC WinForms 4
loading
Tags: GridControl
Mårten Lind
Asked On July 3, 2007 09:28 AM UTC

Hi all.

I'm trying to use the FNumericUpDown cell type with different properties for different columns in the same gridgroupingcontrol with no success.

Having several columns set to FNumericUpDown using the *same* properties works fine, however as soon as you want *different* properties such as different step-values or DecimalPlaces-values, all columns get the same FNumericUpDown property values as the last column.

Attaching my code for further investigation.

Using GridGroupingControl ver 5.102.1.0.

Cheers
/Marten


FNumericButtonTest.zip

haneefm [Syncfusion]
Replied On July 5, 2007 11:10 PM UTC

Hi Marten,

Thank you for bringing this issue in our attention.

I apologize for the delay in responding. I am able to see this issue that you have mentioned here. The reason is that you are always return the FloatNumericUpDownProperties.Default value for FloatNumericButton cell in a grid. Below are a code snippet that shows this issue.

public FloatNumericUpDownProperties FloatNumericUpDownProperties
{
get
{
return FloatNumericUpDownProperties.Default;
}
set
{
style.SetValue(NumericUpDownInfoProperty, value);
}
}

One way you can do this by changing the FloatNumericUpDownProperties set property to store the FloatNumericButton values in a hashtable. You can get the FloatNumericButton values by using the hashtable in a FloatNumericUpDownProperties set property. Please try this and let me know if this helps.

Best regards,
Haneef

Mårten Lind
Replied On July 9, 2007 01:11 PM UTC

Hi Haneef,

I was using the sample code you sent as a response to an earlier question dated 6/14/2007 5:48:54 PM

(message body was: "Hi Felix,

Sorry for the delayed response. Here is a minimal sample that shows you "How to set EnhancedNumericUpDown celltype in a GroupingGrid?". Please try the attached sample and let me know if this helps.

FloatNumericButton.zip

Best regards,
Haneef "

I tried to do what you said in the previous post but I can't find any solution to the problem. I would be very grateful if you could specify a solution in the sample code "FloatNumericButton.zip".

Thanks in advance, keep up the good work!
Cheers
/Marten

Mårten Lind
Replied On July 18, 2007 03:50 PM UTC

Hi again!

Any news on this issue?

I understand your suggestion but cannot find out how to proceed.

Hope you can find a solution!

Thank you in advance,

Cheers

/Marten

haneefm [Syncfusion]
Replied On August 1, 2007 10:24 PM UTC

Hi Marten,

You can not set any cell specific properties for the GroupingGrid other than the CellValue using TableModel property. You need to handle the QueryCellStyleInfo event to do this. Through this event you can set the style properties for the grid. The attached sample implements the QueryCellInfo event to set the cell property.It also implements the Hashtable for storing the csutomproperties of the grid cell. Please refer the attached sample and let me know if this helps.

Sample :ModifiedFloatNumericButton.zip

Best Regards,
Haneef

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

;