如何将一个按钮添加到紧凑的框架DataGrid?

时间:2008-11-12 19:50:29

标签: windows-mobile compact-framework

是否可以在紧凑框架的DataGrid中为列添加按钮?到目前为止,我唯一能找到的是你可以添加文本框,就是这样。什么是可以允许其他控件的DataGrid的一个很好的替代品?

1 个答案:

答案 0 :(得分:3)

您可以使用DataGrid的

public Rectangle GetCellBounds(int row, int col);

public event EventHandler CurrentCellChanged;
public DataGridCell CurrentCell { get; set; }

public event MouseEventHandler MouseMove;
public HitTestInfo HitTest(int x, int y);

在所选单元格上显示一个Button(或其他控件)。

此致 tamberg

相关问题