public GKListView() { //SetStyle(ControlStyles.DoubleBuffer, true); //SetStyle(ControlStyles.OptimizedDoubleBuffer, true); //SetStyle(ControlStyles.AllPaintingInWmPaint, true); // Enable the OnNotifyMessage event so we get a chance to filter out // Windows messages before they get to the form's WndProc //SetStyle(ControlStyles.EnableNotifyMessage, true); //OwnerDraw = true; fCheckedList = false; fItems = new ObservableExtList <GKListItem>(); fItemsAccessor = new GKListViewItems(this); fListMan = null; fSortColumn = 0; fSortOrder = BSDTypes.SortOrder.None; AllowColumnReordering = false; AllowMultipleSelection = false; DataStore = fItems; }
public GKListView() { SetStyle(ControlStyles.DoubleBuffer, true); SetStyle(ControlStyles.OptimizedDoubleBuffer, true); SetStyle(ControlStyles.AllPaintingInWmPaint, true); // Enable the OnNotifyMessage event so we get a chance to filter out // Windows messages before they get to the form's WndProc SetStyle(ControlStyles.EnableNotifyMessage, true); OwnerDraw = true; HideSelection = false; LabelEdit = false; FullRowSelect = true; View = View.Details; fSortColumn = 0; fSortOrder = MVPSortOrder.None; fColumnSorter = new LVColumnSorter(this); fItemsAccessor = new GKListViewItems(this); ListViewItemSorter = fColumnSorter; fListMan = null; }