Click here to Skip to main content
15,940,173 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Im working in Silverlight with I want to export the data from a datagrid to excel. My codings are below

<data:DataGrid x:Name="SearchMesagesDataGrid" Height="Auto"  Margin="5"  HorizontalAlignment="Left" VerticalAlignment="Top"
                AutoGenerateColumns="False"  IsReadOnly="True"  MinHeight="200" Grid.Row="4" Grid.ColumnSpan="7" CanUserSortColumns="True"
                CanUserResizeColumns="True"  >
                <data:DataGridTemplateColumn Width="70" Header="CaseId" >
                            <TextBlock Margin="5" HorizontalAlignment="Left" VerticalAlignment="Top" Cursor="Hand" Tag="{Binding IssueId}"  Text="{Binding IssueId}" MouseLeftButtonDown="MyMessageCaseIdTextBlock_MouseLeftButtonDown"    ToolTipService.ToolTip="Click here to open the case"  ></TextBlock>


1 solution

Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900