Hi,
I have a Syncfusion GridDataControl in my window and a button to copy the contents of the table to clipboard. xaml is given below for reference.
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="30"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Button Content="Copy to Clipboard" Height="25" Width="150" Click="CopyDatagrid1" HorizontalAlignment="Right"/>
<syncfusion:LayoutControl SkinPickerVisibility="Collapsed" TraceVisibility="Hidden"
syncfusion:LayoutControl.ApplyStyle="True"
UserOptionsVisibility="Hidden" Grid.Row="1" VisualStyle="SyncfusionTheme">
<syncfusion:LayoutControl.GridView>
<syncfusion:GridDataControl x:Name="dataGrid1" AllowResizeRows="False"
AutoPopulateColumns="False" AutoPopulateRelations="False" ShowAddNewRow="False" ItemsSource="{Binding DataGrid1Source}"
VisualStyle="SyncfusionTheme" AllowEdit="False" AllowSort="False">
<syncfusion:GridDataControl.VisibleColumns>
<syncfusion:GridDataVisibleColumn MappingName="Column1" HeaderText="Column1" AutoFit="True"/>
<syncfusion:GridDataVisibleColumn MappingName="Column2" HeaderText="Column2" AutoFit="True"/>
<syncfusion:GridDataVisibleColumn MappingName="Column3" HeaderText="Column3" AutoFit="True"/>
<syncfusion:GridDataVisibleColumn MappingName="Column4" HeaderText="Column4" AutoFit="True"/>
</syncfusion:GridDataControl.VisibleColumns>
</syncfusion:GridDataControl>
</syncfusion:LayoutControl.GridView>
</syncfusion:LayoutControl>
</Grid>
I wanted to check if there is an option to copy the entire contents of the table including headers, formatting etc to clipboard and then paste it to image format.
Basically this table which I'm trying to put should be copied as image when the button is pressed.
Kindly advice on how to achieve this.
Thanks,
Magesh