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.

Using ValueConverterParameter in GridDataVisibleColumn class for GDC

Thread ID:

Created:

Updated:

Platform:

Replies:

99739 Jun 8,2011 09:45 AM Jun 14,2011 06:07 AM ASP.NET Web Forms (Classic) 1
loading
Tags: GridGroupingControl
Paul Sample
Asked On June 8, 2011 09:45 AM

Hello, my name is Paul Sample and I am a developer for RSA on the Hydra project. We are trying to add columns to a GDC in a Silverlight page using the GridDataVisibleColumn classs. If you take the following code example:

grid.VisibleColumns.Add(new GridDataVisibleColumn()

{

HeaderText = “UserID”,

MappingName = “Data”,

ValueConverter = valueConverter,

ValueConverterParameter = 0

});



grid.VisibleColumns.Add(new GridDataVisibleColumn()

{

HeaderText = “UserName”,

MappingName = “Data”,

ValueConverter = valueConverter,

ValueConverterParameter = 1

});



grid.VisibleColumns.Add(new GridDataVisibleColumn()

{

HeaderText = “UserIP”,

MappingName = “Data”,

ValueConverter = valueConverter,

ValueConverterParameter = 2

});

... when the valueConverter.Convert method is called for each column in a row only the ValueConverterParameter assigned to the first column is called, in this case 0. The second column called doesn't get 1 it gets 0 (or whatever the first assigned value is), or the third doesn't get 2, etc. How come the ValueConverterParameter assigned to each column isn't called accordingly? Is there a way to achieve this?

Regards,

Paul Sample, Senior Software Engineer - RSA Security



Ramesh V [Syncfusion]
Replied On June 14, 2011 06:07 AM

Hi Paul,

Thanks for using Syncfusion Products.
We have analyzed the reported issue with our sample; we are not able to reproduce the issue. Can you please check with the sample in the following location? If still you face the problem, please revert us by modifying the sample based on your application along with replication procedure. This would be helpful for us to serve you.

Sample : http://www.syncfusion.com/uploads/redirect.aspx?file=IValueConverter_Silverlight-CS_e03f103.zip&team=testingftp

Please let us know if you have any queries.
Regards,
Ramesh.V



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.

;