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

CheckBox column and image

4 Answers 188 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Deborah
Top achievements
Rank 1
Deborah asked on 04 Oct 2010, 06:37 PM
My customer wants to display a checkmark image in the column if the column is checked and no image in the column if the checkmark is unchecked.

Is there an easy way to do this? Or do I need to write code (formating event?) to replace the image as the data is binding and as the user clicks in the column?

Thanks!

4 Answers, 1 is accepted

Sort by
0
Emanuel Varga
Top achievements
Rank 1
answered on 04 Oct 2010, 07:00 PM
Hello Deborah,

Like you already know, the easiest way of doing this is by using the Formatting Events (Cell, Row), a more complex and more maintainable way would be by using a custom cell & custom cell provider.

If you have any more questions, please do not hesitate to say so,

Best Regards,
Emanuel Varga
0
Deborah
Top achievements
Rank 1
answered on 04 Oct 2010, 07:02 PM
Where is the best place to find an example of building a custom cell and custom cell provider?
0
Emanuel Varga
Top achievements
Rank 1
answered on 04 Oct 2010, 07:15 PM
Hello Deborah,

I think you will find all the necessary information required in order to create a custom cell and to use a custom cell provider in this thread(http://www.telerik.com/community/forums/winforms/gridview/add-2-buttons-dynamically-and-set-there-visibility-by-checking-the-values-of-another-column-in-grdi-view.aspx), you will find there also a full form example of creation and usage.

/*
OFFTOPIC: Is it just me or is the hyperlink manager down? I keep getting an Oops... Oops...
It seems there was a problem with our server.

Try reloading the page.
*/

Hope this helps, please let me know if there is anything else i can do to help.

Best Regards,
Emanuel Varga
0
Svett
Telerik team
answered on 07 Oct 2010, 05:32 PM
Hello Deborah,

In addition of Emanuel's post you may look at this knowledge base article where we illustrate how to create a custom cell.
 
Sincerely yours,
Svett
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
GridView
Asked by
Deborah
Top achievements
Rank 1
Answers by
Emanuel Varga
Top achievements
Rank 1
Deborah
Top achievements
Rank 1
Svett
Telerik team
Share this question
or