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

[Solved] Multi-control cell

1 Answer 84 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Steve
Top achievements
Rank 1
Steve asked on 27 Oct 2010, 03:36 AM
I would like to display my data with more than one data item in each cell (or at least to give that appearance to the user). See image. Any clues?

Preferably I would like to set this up using code-behind (C#) as that is how I am adding the columns currently.

1 Answer, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 27 Oct 2010, 07:13 AM
Hi Steve,

You may define the CellTemplate for that particular similar to the following:

<telerik:GridViewDataColumn DataMemberBinding="{Binding Country}">
    <telerik:GridViewDataColumn.CellTemplate>
        <DataTemplate>
            <StackPanel>
                <TextBlock Text="{Binding Country}" />
                <CheckBox HorizontalAlignment="Right"/>
            </StackPanel>
        </DataTemplate>
    </telerik:GridViewDataColumn.CellTemplate>
</telerik:GridViewDataColumn>

Another possible approach may be to create your own custom column as demonstrated in our online documentation.
 

Best wishes,
Maya
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
Steve
Top achievements
Rank 1
Answers by
Maya
Telerik team
Share this question
or