Here is this month’s edition of WPF Tips & Tricks and interesting support tickets we answered over the last couple of months. If you would like us to elaborate on any item listed within this post, feel free to comment below or create a new ticket in the DevExpress Support Center.
Tips
Tickets
WPF Data Grid
- Expand a master row when a new item is added using MVVM (T985341)
- Change editor settings for autogenerated columns in code (T985471)
-
Allow pasting more than 65536 rows into Data Grid and Spreadsheet (T978207)
To paste more than 65536 rows, modify the ClipboardSourceFactory.SourcePriority and SpreadsheetClipboardOptions.PasteFormat properties:
ClipboardSourceFactory.SourcePriority = new[] {
ClipboardSourceType.XMLSpreadsheet,
ClipboardSourceType.Excel,
ClipboardSourceType.Csv,
ClipboardSourceType.UnicodeText,
ClipboardSourceType.Text
};
<dxsps:SpreadsheetClipboardOptions PasteFormat="Biff12"/>
- How to create a custom filter editor dialog for the WPF Data Grid Control (T976485)
-
Click anywhere on the row to select it if the selector column is enabled (T979476)
When the selector column is enabled, you can only click within the selector column to select rows. To change this default behavior, use the TableView.RetainSelectionOnClickOutsideCheckBoxSelector property.
- Show selector column's checkboxes only at a specific grouping level (T979447)
-
Grid Control doesn't restore the FilterString correctly if it contains an enum value (T981499)
Use the EnumProcessingHelper.RegisterEnum method to register your enum type.
- Focus the Search box automatically in the column filter popup (T985506)
WPF Scheduler
- Show empty cells for dates with null values in ListView (T982885)
- How to print ListView (T986194)
-
Avoid the "No default constructor" warning if AppointmentsSource is a list of interfaces (T981867)
Handle the DataSource.CreateSourceObject event to create an appointment object instance manually:
void DataSource_CreateSourceObject(object sender, CreateSourceObjectEventArgs e) {
if (e.ItemType == ItemType.AppointmentItem)
e.Instance = new MyAppointment();
}
-
Emphasize the border between Days in WorkWeekView (T981112)
If the Scheduler is grouped, you can use the GroupSeparatorSize property to increase the width of the line between groups.
Miscellaneous
And don't forget to check our latest blog post about Automation Testing: UI Automation & Appium Testing Support.
Free DevExpress Products – Get Your Copy Today
The following free DevExpress product offers remain available. Should you have any questions about the free offers below, please submit a ticket via the
DevExpress Support Center at your convenience. We’ll be happy to follow-up.