column grouping
pls how can i group a column?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
dani daniPosted Jun 4, 2016, 5:02 PM
i use dapfor.Net Grid. Columns can be moved and sorted and their size can be changed within a group. However, the grid doesn’t support moving columns outside the group or inserting a column not belonging to the group into the middle of this group. Merged columns cannot be grouped, but otherwise they behave as regular columns.check codes below
Header header = grid.Headers[0];
MergedColumn mergedColumn = header.MergedColums.CreateNew("Merged column");
mergedColumn.Add(grid.Headers[0]["ID2"]);
mergedColumn.Add(grid.Headers[0]["ID3"]);
header.ColumnPanelHeight = 36;
mergedColumn.Height = 18;