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. Image for the cookie policy date

Using ValueConverterParameter in GridDataVisibleColumn class for GDC

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



1 Reply

RV Ramesh V Syncfusion Team June 14, 2011 10:07 AM UTC

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



Loader.
Live Chat Icon For mobile
Up arrow icon