Skip to content

Instantly share code, notes, and snippets.

@craigeddy
craigeddy / AutoMapper-Ignore
Last active Nov 25, 2019
How to tell AutoMapper to ignore a destination property
View AutoMapper-Ignore
cfg.CreateMap<T<S>, T<D>>().ForMember(d => d.XYZ, opt => opt.Ignore())‎‎​
@craigeddy
craigeddy / Telerik RadGridView Grouped Columns
Last active Sep 5, 2017
Grouping columns programmatically in the Telerik RadGridView control for WinForms
View Telerik RadGridView Grouped Columns
// http://docs.telerik.com/devtools/winforms/gridview/view-definitions/column-groups-view
// Grouped columns do not wrap header text; see http://www.telerik.com/forums/grouping-column-headers
var view = new ColumnGroupsViewDefinition();
var group = new GridViewColumnGroup("Reference Data");
view.ColumnGroups.Add(group);
var groupRow = new GridViewColumnGroupRow();
group.Rows.Add(groupRow);