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

Add Control in Cell with RadGridView

2 Answers 212 Views
GridView
This is a migrated thread and some comments may be shown as answers.
kenny
Top achievements
Rank 1
kenny asked on 16 Jul 2010, 03:49 AM
Hi !

1) I want add control in Cell of RadGridView.
2) Set color for Cell .
e.g: radGridView1.Rows[1].Cell[2]....?

Help Me. Thanks

2 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 16 Jul 2010, 10:30 AM
Hello,


I hope the following links will help you in this.
Adding custom elements to grid cells
Formatting Cells
Conditional Formatting Cells


Thanks,
Princy.
0
Accepted
Alexander
Telerik team
answered on 19 Jul 2010, 08:07 PM
Hello Kenny,

Thank you for your questions.

Princy points you fine for solving your tasks. RadGridView uses UI virtualization and therefore it creates elements only for cells that are currently visible. Later they are reused when needed. That is why the CellFormatting event was introduced.

The first link of the Princy's list refers to a Knowledge Base article which describes how to add custom elements to RadGridView cells handling the CellFormatting event.

The Formatting Cells and Conditional Formatting Cells articles show how to style RadGridView cells using the CellFormatting event and the ConditionalFormattingObject. In addition the Q2 2010 RadGridView release introduces a new method for styling cells - the Style property. You can read more about it in this blog post.
 

Regards,
Alexander
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
kenny
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Alexander
Telerik team
Share this question
or