【问题标题】:datagrid and href link wpf数据网格和href链接wpf
【发布时间】:2012-03-16 05:58:43
【问题描述】:

我的数据网格中有一个仅包含 URL 的列,我想让它们都可点击,我需要做什么?

【问题讨论】:

标签: c# wpf datagrid wpfdatagrid wpftoolkit


【解决方案1】:

为您的数据网格提供鼠标点击事件,并在后面编写代码。

 <WpfToolkit:DataGrid Name="DataGrid1" 
            ItemsSource="{Binding Path=Binding}"
            MouseLeftButtonDown="OnMouseClick" >

代码背后

private void OnMouseClick(object sender, MouseButtonEventArgs e)
{
//Do something

}

【讨论】:

    猜你喜欢
    • 2014-08-18
    • 1970-01-01
    • 2019-04-17
    • 1970-01-01
    • 2014-05-09
    • 2013-10-21
    • 2014-09-01
    • 2017-06-16
    • 1970-01-01
    相关资源
    最近更新 更多