We have WPF application, In which we use DataGrid on one form. Our requirement is that In One column Of that Datagrid there will be onr Button, After clicking it will ask for browse file, & it will take path of that file. Afterward that path will set to textBlock which replaced that same button. So What need to be done? Currently we are able to get path, but how to show TextBlock after selecting path from Browsing.
<toolkit:DataGridTemplateColumn Header="Attachment Copy Of Invoice" Width="180" >
<toolkit:DataGridTemplateColumn.CellTemplate>
<DataTemplate>
<TextBlock x:Name="Attach" Uid="Ata" Text="{Binding Path=Attachment, UpdateSourceTrigger=PropertyChanged}" />
</DataTemplate>
</toolkit:DataGridTemplateColumn.CellTemplate>
<toolkit:DataGridTemplateColumn.CellEditingTemplate>
<DataTemplate>
<Button Name="Click" Click="Click_Click" ></Button>
</DataTemplate>
</toolkit:DataGridTemplateColumn.CellEditingTemplate>
</toolkit:DataGridTemplateColumn>