* UIDataGridViewFooter: 增加绑定列的ColumnName或者DataPropertyName都可以显示

This commit is contained in:
Sunny 2024-06-01 22:28:25 +08:00
parent 7c578496fc
commit 660cf54146

View File

@ -21,6 +21,7 @@
* 2021-11-22: V3.0.9
* 2022-09-05: V3.2.3
* 2023-05-15: V3.3.6 DrawString函数
* 2024-06-01: V3.6.6 ColumnName或者DataPropertyName都可以显示
******************************************************************************/
using System.Collections.Generic;
@ -111,6 +112,7 @@ namespace Sunny.UI
}
string str = this[column.Name];
if (str.IsNullOrEmpty()) str = this[column.DataPropertyName];
if (str.IsNullOrEmpty()) continue;
var align = column.DefaultCellStyle.Alignment;