internal void UpdateGroupNative(ListViewGroupEx group, bool invalidate = true) { LVGROUP nGroup = group.AsLVGROUP(); nGroup.SetState(ListViewGroupState.Collapsible, collapsible); this.CallWhenHandleValid(c => { SendMessage(ListViewMessage.SetGroupInfo, group.ID, nGroup); if (invalidate) { base.Invalidate(); } }); }
private void InsertGroupNative(int index, ListViewGroupEx group) { this.CallWhenHandleValid(c => this.SendMessage(ListViewMessage.InsertGroup, index, group.AsLVGROUP())); }