DataGrid merge unit

zhaozj2021-02-16  51

Private void spanrid () {

INT i; int J; int tent; string temp; for (i = 0; i <= mydatagrid.items.count - 1; i ) {datagriditem _Item = mydatagrid.items [i]; intSpan = 1; temp = mydatagrid. Items [i] .cells [0] .text; for (j = i 1; j <= mydatagrid.Items.count - 1; j )

{IF (string.Compare (Temp, mydatagrid.items [j] .cells [0] .text) == 0) {INTSPAN ; mydatagrid.items [i] .cells [0] .ROWSPAN = INTSPAN; myDataGrid.Items [ j] .cells [0] .visible = false;} else {breaf;

} I = j-1;}

}

转载请注明原文地址:https://www.9cbs.com/read-16279.html

New Post(0)