This is a migrated thread and some comments may be shown as answers.

Inserting image in column depending on checkbox check state in other column

2 Answers 89 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Johannes
Top achievements
Rank 2
Johannes asked on 30 Nov 2012, 10:17 AM
Hi everyone,

I've just started testing out the Telerik components for WPF in search of a component bundle to purchase for
our development projects and have started out testing the GridView for WPF. A wonderful piece of work.

However, I have a question. How do I insert an image in a column based on the value of a checkbox that
resides in another column.

I.e, if the checkbox check state on column 0 is true I'd like to insert an image of a green tick icon (which I have as a .png file)
into column 1, etc.

Is there a simple way to achieve this?

I'm coming from Windows Forms development which makes all this XAML stuff a bit new to me so sorry for the newbie question.

2 Answers, 1 is accepted

Sort by
0
Johannes
Top achievements
Rank 2
answered on 30 Nov 2012, 12:21 PM
Never mind my previous question, after having some lunch I figured it out. Using a simple valueconverter and the Telerik Gridview CellTemplate and DataTemplate took care of it. :)

Edit:
How do I mark this as solved??
0
Yoan
Telerik team
answered on 04 Dec 2012, 04:00 PM
Hello Johannes,

I am glad to hear that you could resolve the problem by yourself. Actually, there is no need to close the forums treads. 

Please if you face any further difficulties do not hesitate to contact us.

Greetings,
Yoan
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
GridView
Asked by
Johannes
Top achievements
Rank 2
Answers by
Johannes
Top achievements
Rank 2
Yoan
Telerik team
Share this question
or