Skip to content

How to open DataGridHyperlinkColumn Links in the default browser by event? #460

Answered by TheophilusE
TheophilusE asked this question in Q&A
Discussion options

You must be logged in to vote

Deduced a workaround for this using the DataHyperlinkColumn. The workaround ensures that the hyperlink RequestNavigate event is handled to prevent the application navigating to it using the in-built web view. My setup is stated below.

<Grid Grid.Row="1">
      <Grid.ColumnDefinitions>
          <ColumnDefinition Width="*" />
      </Grid.ColumnDefinitions>
  
      <DataGrid
          Margin="0,20,0,0"
          IsReadOnly="True"
      
          CanUserAddRows="False"
          CanUserSortColumns="True"
          CanUserDeleteRows="False"
          CanUserResizeRows="False"
          CanUserResizeColumns="True"
          CanUserReorderColumns="False"
          
          AutoGenerateColumns

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by TheophilusE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant