The different parameters for the AddInternalColumn procedure are: Grid.AddInternalColumn(columnsToAdd, new OutlookGridAlphabeticGroup(null), SortOrder.None, -1, -1) Grid.AddInternalColumn(columnsToAdd, new OutlookGridDefaultGroup(null), SortOrder.None, -1, -1) For grouping and sorting abilities we need to precise the columns to the grid. The column Name property must not be empty (whereas the HeaderText could be).ĭataGridViewColumn columnsToAdd = new DataGridViewColumn ĬolumnsToAdd = SetupColumn(SandBoxGridColumn.ColumnCustomerID) ĬolumnsToAdd = SetupColumn(SandBoxGridColumn.ColumnCustomerName) ĬolumnsToAdd = SetupColumn(SandBoxGridColumn.ColumnAddress) ĥ.The column SortMode property must be set to "Programmatic" as the grid will handle itself the sorting.Warning you must respect these two rules : Design your grid by configuring your columns as you would do with the standard datagridview in unbound mode. We need that the OutlookGrid listens to the GroupBox actions/events.Īlso set to true the property AllowDrop for the Outlookgrid.Ĥ. OutlookGrid1.GroupBox = KryptonOutlookGridGroupBox1 ģ. Associate the KryptonOutlookGridGroupBox with the grid by design time or by code using the following : Drag and drop the KryptonOutlookGrid and KryptonOutlookGridGroupBox on the Form.Ģ. You can either doing it by adding the projects to your solution or referencing directly the dlls.ġ.
Krypton toolkit .dll#
įollow the instructions to set up your dev environnement.Īdd a reference to and .dll to your project. Thus, please refer to my fork of the Krypton Suite. Some modifications were required to the source of the Krypton Toolkit on which the grid relies on. Krypton Outlook relies on the Krypton Suite from Component Factory, which is now open-source under BSD license. Please read the original article from Herre Kuijpers to understand how the grid functions on the top of the Winforms (Krypton)DataGridView.
Krypton toolkit how to#
This section will guide you how to use the Krypton OutlookGrid.