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

Custom GridView Control With CellTooltipBinding Property

0 Answers 17 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Anita
Top achievements
Rank 1
Anita asked on 03 May 2011, 11:07 AM
Hi,

I am creating cutom Gridview control .The Control uses Silverlight RadGridview internally.
By Using CellTemplate in XAML file ,I am able to get the tooltip per cell.

But I want to provide a "CellTooltipBinding" property to my custom control. Like Below Code:

 

 

 

<my:CSPGridView Height="250" Width="250" x:Name="CSPGridView2"

 

 

 

AutoGenerateColumns="False" PageSize="3" >

 

 

 

 

<my:CSPGridView.Columns>

 

 

 

 

<my:CSPGridViewDataColumn Header="First Name" DataMemberBinding="{Binding FirstName}" CellToolTipBinding="{Binding FirstName}" >

 

 

 

 

 

</my:CSPGridViewDataColumn>

 

 

 

 

<my:CSPGridViewDataColumn Header="Last Name" DataMemberBinding="{Binding LastName}" />

 

 

 

 

<my:CSPGridViewDataColumn Header="Designation" DataMemberBinding="{Binding Designation}" />

 

 

 

 

</my:CSPGridView.Columns>

 

 

 

 

</my:CSPGridView>


But i am not able to generate Cell template in my CSPGridviewDataColumn.cs  file.

Please help to crate a Datatemplate in code behind..........

Best Regards,
Anita Sahu



 

No answers yet. Maybe you can help?

Tags
GridView
Asked by
Anita
Top achievements
Rank 1
Share this question
or