2024年6月5日发(作者:)
UltraWinGrid使用心得(C#)
2008年10月23日
10:49
UltraWinGrid行号从0开始
CellMultiLine Cell多行显示
当设定一个Column的CellMultiLine为True时,如果想要格子自动增长(变大),必须设定RowSizing
的属性为AutoFree或Free
ltiLine = ;
ing =
ee;
Rowsizing
ColumnSizing
MultiCellSelectionMode
多个Cell的选择
SummaryFooterCaption 汇总标题
行变化
列变化
汇总的标题,默认为Grand Summaries,可以运行中根据汇总的字段进行更改
MergedCell 合并相似Cell
CellEvaluationType =
ameText;
CellStyle =
;
SummaryDisplayAreas 汇总显示区域
显示汇总信息的位置,默认显示在Group项的标题行
yDisplayArea = ;
HeaderVisible Band项的Header
[1].HeaderVisible = true;
[1].n = "asfafa";
//yDisplayArea = ;
//[1].lor = lue;
//[1].lor2 = lue;
ColHeaderVisible 不显示Bands的表头
[1].ColHeadersVisible = false;
Columns标题颜色
[1].Columns[0].lor =
oral;
ColumnStyle Column样式(下拉框)
UltraDropDown KindList = new UltraDropDown();//建立一个下拉对象
urce = urce;//绑定数据源
["OrderHeader"].Columns["Kind"].ValueList = KindList;//绑定到Column
ActiveRow 当前行和选中内容
[0].Cells[0].ng()[
].Cells[0].ng ()
[SignRow].Activate();
判断当前行是子行还是父行
(ng());
Expand 展开或关闭关联
In C#:
// Expands the current row and its children as well
[0].Expand(true); //展开单个行
All(true);
ed = true;
UltraGridBand 定义绑定,实现遍历子行
int BandRow = 0;
UltraGridBand band =["Schedule"];
foreach (UltraGridRow row in Enumerator(w))
{
BandRow++;
([2].ng ());
}
(ng());
////[1].AddNew();
int BandRow = 0;
UltraGridBand band = ["Sign"];
foreach (UltraGridRow row in Enumerator(w))
{
BandRow++;
["SignMemo"].Activate();
["SignMemo"].Value = ng();
}
(ng());
发布评论