BoldDeskWe are launching BoldDesk on Product Hunt soon. Learn more & follow us.
Hi Sean,
Thank you for contacting syncfusion support.
We have analyzed your query. You can use Comments in GridDataControl by setting ShowComment property as true in GridCommentServices. Please refer the below code snippet.
Code Snippet:
<syncfusion:GridDataControl ShowAddNewRow="False" syncfusion:GridCommentService.ShowComment="True" ItemsSource="{Binding Data}" AutoPopulateColumns="False" Grid.Row="0"> |
Please find modified sample from below location.
Sample:
Thanks,
Mahendran.
Hi Sean,
Thank you for your update.
We have analyzed your query, you can display every cell value as comment by using CommentTemplateKey for that particular column. By customizing DataTemplate you can achieve your requirement. Please refer the below codesnippet.
Code snippet:
<Window.Resources> <DataTemplate x:Key="commenttext" > <StackPanel Background="Red"> <TextBlock x:Name="txtblck" Text="{Binding Path=CellValue}"/> </StackPanel> </DataTemplate> </Window.Resources> <syncfusion:GridDataControl Name="syncgrid"> <syncfusion:GridDataVisibleColumn MappingName="CustomerName" > <syncfusion:GridDataVisibleColumn.ColumnStyle> <syncfusion:GridDataColumnStyle CommentTemplateKey="commenttext" Comment="test" > </syncfusion:GridDataColumnStyle> </syncfusion:GridDataVisibleColumn.ColumnStyle> </syncfusion:GridDataVisibleColumn> </syncfusion:GridDataControl> |
Please let us know if you have any queries.
Thanks,
Mahednran.