hey! guys:
I created a datatable by code and set it to gridView's itemsource, everything looks good ,I could grouping cols my drag it to group panel.
then I created a button, in button's behind code, I created some group descriptors and added them into grid's group descriptors, Oops,
the problem is coming , the grid is not grouped as I expected, some rows were missing.
After I deleted the group cols by closing the grouping button and drag cols into group panel, the group is ok again.
The codes is same as demo. Did I miss something ?
I created a datatable by code and set it to gridView's itemsource, everything looks good ,I could grouping cols my drag it to group panel.
then I created a button, in button's behind code, I created some group descriptors and added them into grid's group descriptors, Oops,
the problem is coming , the grid is not grouped as I expected, some rows were missing.
After I deleted the group cols by closing the grouping button and drag cols into group panel, the group is ok again.
GroupDescriptor descriptor1 = new GroupDescriptor();
descriptor1.Member = "Country";
descriptor1.SortDirection = ListSortDirection.Ascending;
this.gridView.GroupDescriptors.Add(descriptor1) ;
GroupDescriptor descriptor2 = new GroupDescriptor();
descriptor2.Member = "Name";
descriptor2.SortDirection = ListSortDirection.Ascending;
this.gridView.GroupDescriptors.Add(descriptor2) ;