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

1

5

Here is my Grid

enter image description here

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

enter image description here

I Can't find solution help me Thank you

Bouton answered 26/10, 2018 at 11:22 Comment(8)
Possible duplicate of Open file locationTuba
@Anas In path I want to create a 'hyper link'Bouton
take a look at DataGridViewLinkColumn, maybe this what you are looking forTuba
@Anas Im near to solve my issue but not yet and thank you for share this linkBouton
you're welcome, please share your solution after you're doneTuba
with @Anas answer you can use this #13011907Ravin
@Anas Finally I find the SolutionBouton
@Ravin Finally I find the SolutionBouton
B
6

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....

Bouton answered 30/10, 2018 at 12:45 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.