简体   繁体   中英

How to Open file location based on grid view column's path? and also In a path I want to create a 'hyper link'

Here is my Grid

在此输入图像描述

Based on the path i have to open a file location of the my path

My grid code look like this

<telerik:RadGridView  Grid.Row="7" 
                      Grid.Column="1" 
                      Grid.ColumnSpan="2" 
                      ShowGroupPanel="False" 
                      Name="InventoryDetailsGrid"
                      Foreground="#357BCC"                                              
                      GridLinesVisibility="Horizontal"
                      AutoGenerateColumns="True"> 
</telerik:RadGridView>

I tired to open based on the path open file location dialog box

for example :- when I was click on the path I want look like same

在此输入图像描述

I Can't find solution help me Thank you

Finally I find the solution

 <telerik:RadGridView  Grid.Row="7" Grid.Column="1" Grid.ColumnSpan="2" ShowGroupPanel="False" 
                                              Name="InventoryDetailsGrid"
                                              Foreground="#357BCC"                                              
                                              GridLinesVisibility="Horizontal"
                                              AutoGenerateColumns="False">
                            <telerik:RadGridView.Columns>
                                <telerik:GridViewHyperlinkColumn Header="Path" DataMemberBinding="{Binding Path}" />
                                <telerik:GridViewDataColumn DataMemberBinding="{Binding Title}" Header="Title" IsReadOnly="True"/>
                                <telerik:GridViewDataColumn DataMemberBinding="{Binding Size}" Header="Size" IsReadOnly="True"/>
                                <telerik:GridViewDataColumn DataMemberBinding="{Binding PathLength}" Header="Path Length" IsReadOnly="True"/>
                                <telerik:GridViewDataColumn DataMemberBinding="{Binding FileExtension}" Header="FileExtension" IsReadOnly="True"/>
                                <telerik:GridViewDataColumn DataMemberBinding="{Binding OfItem}" Header="Of Item" IsReadOnly="True"/>
                            </telerik:RadGridView.Columns>                          

</telerik:RadGridView> 

It's Working for me yeah....

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM