Hi Wenbiao,
Thanks for the patience.
We have analyzed your and you can achieve your requirement by using the following code snippet.
Code Snippet[XAML]:
<Window.Resources> <DataTemplate x:Key="source" DataType="{x:Type ToolTip}"> <Border Background="Red" BorderThickness="3" BorderBrush="Black" > <TextBlock Text="Tool Tip" Width="70" FontSize="12" FontWeight="Bold"></TextBlock> </Border> </DataTemplate> </Window.Resources>
|
Code Snippet[C#]:
this.GridTree.ModelLoaded += new EventHandler(GridTree_ModelLoaded);
void GridTree_ModelLoaded(object sender, EventArgs e) { GridTooltipService.SetShowTooltips(this.GridTree.InternalGrid, true); GridTooltipService.SetTooltipDelay(this.GridTree.InternalGrid, 0); this.GridTree.InternalGrid.QueryCellInfo += new Syncfusion.Windows.Controls.Grid.GridQueryCellInfoEventHandler(InternalGrid_QueryCellInfo); }
void InternalGrid_QueryCellInfo(object sender, Syncfusion.Windows.Controls.Grid.GridQueryCellInfoEventArgs e) { if (e.Cell.RowIndex == 0) { e.Style.ShowTooltip = true; e.Style.TooltipTemplateKey = "source"; } } |
We have prepared a sample based on this and it can be download from the following location.
Sample Location: GridTreeControl.zip
Snap Shot:
Please let us know if you have any questions.
Thanks,
Hi Wenbiao,
Sorry for the inconvenience caused.
We have tested the reported issue with our sample and we are unable to reproduce the issue. Could you please check the sample in the following location? If the problem still exist, please revert us by modifying the sample based on your application along with replication procedure. This would be helpful for us to serve you.
Sample
location:
GridTreeControl.zip
Video location : Video.zip
Please let us know if you have any questions.
Thanks,