【发布时间】:2012-01-28 09:52:29
【问题描述】:
我有一个关于 .NET 4.0 中的标准 WPF DataGrid 的问题。
当我尝试使用简单代码以编程方式设置 DataGrid 网格行高时:
private void dataGrid1_LoadingRow(object sender, DataGridRowEventArgs e)
{
e.Row.Height = 120;
}
一切都很好,直到我尝试在用户界面上调整网格行的大小/在侧面使用鼠标像在 excel/ 中的标准方式 - 然后它似乎无法调整网格行的大小。它一直是 120。顺便说一下,它的内容都搞砸了......
就像 Sinead O'Connor 会说的:告诉我宝贝 - 我哪里做错了?
【问题讨论】: