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

CellTemplates and empty cells

1 Answer 52 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Jerry Kurata
Top achievements
Rank 1
Jerry Kurata asked on 23 Apr 2010, 04:22 PM
Hi,

I have a GridView that contains columns that have CellTemplates which create cells that contain multiple fields.  This works fine except when there is no data for the cell.  In this case it displays the cell template without any data.  I would like to display a empty cell if there is no data.  Any suggestions on the best way to proceed?

Thanks,

Jerry

1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 26 Apr 2010, 07:35 AM
Hello Jerry,

You can use IValueConverter for a Binding to display conditionally value for example with TextBlock or you can display conditionally different template using CellTemplateSelector/CellEditTemplateSelector properties of GridViewColumn.

Kind regards,
Vlad
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
Jerry Kurata
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or