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.

Text GridDataVisibleColumn

Thread ID:

Created:

Updated:

Platform:

Replies:

101488 Oct 27,2011 05:07 PM Feb 15,2012 04:26 AM Silverlight 5
loading
Tags: GridControl
Francisco
Asked On October 27, 2011 05:07 PM

Hi all,
How can I create a Text GridDataVisibleColumn programmaticaly?

Best

Francisco


Jawahar Jeevanandan J [Syncfusion]
Replied On November 2, 2011 06:05 AM

Hi Francisco,

Thanks for using Syncfusion Products.

You can achieve your requirement using the following codes.

Code snippet [C#]:

gridDataControl1.VisibleColumns.Add(new GridDataVisibleColumn() { MappingName = "Name", HeaderText = "Employee Name" });
gridDataControl1.VisibleColumns.Add(new GridDataVisibleColumn() { MappingName = "ID", HeaderText = "Employee ID" });

We have prepared a sample based on this and you can find the sample under the following location.

Sample : http://www.syncfusion.com/downloads/Support/DirectTrac/86591/VisibleColumn902495389.zip

Please let us know if this helps.

Thanks,
Jawahar.


Francisco
Replied On November 2, 2011 10:26 AM

OK, it's working thanks!


Jawahar Jeevanandan J [Syncfusion]
Replied On November 3, 2011 12:33 AM

Hi Francisco,

Thanks for your update. Also, please let us know if you would require any assistance on this.

Thanks,
Jawahar.


Fredrik Remaeus
Replied On February 14, 2012 06:59 AM

Is it possible to bind several columns to the same value in the viewmodel and then useing a converter like this:

ValueConverter="{StaticResource mdlMethodPositionContentConverter}"
ValueConverterParameter="0" HeaderText="Needle 1" IsReadOnly="True" Width="Auto" >










I always get the first columns valueparameter to my converter.

regards F



Rajasekar [Syncfusion]
Replied On February 15, 2012 04:26 AM

Hi Fredrik,

Thank you for your update.

We have checked with your requirement and we have found that, you are trying to bind the Complex objects in the same and different column. Yes, you can achieve this by using DataTemplates and binding the mapping name like this Name.FirstName, we have prepared the similar sample based on this and please find the sample in the below location,

Sample: http://www.syncfusion.com/downloads/Support/DirectTrac/89835/SyncfusionGDC-1023203038.zip

Note: The similar query is posted in the incident # 90879, so we request you to update your queries in that respective incident for the better follow up.

Please let us know if you have any queries.

Thanks,
Rajasekar



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.

;