Quantcast
Channel: Extended WPF Toolkit™ Community Edition
Viewing all articles
Browse latest Browse all 4964

New Post: DataGridControl - Formatting Auto-Generated DateTime? Column

$
0
0
Thanks for the quick response!
  1. Where do a I place the "xcdg:Column" Element? If I place it inside the "xcdg:DataGridControl" Element, I get an error saying "Items collection must be empty before using ItemsSource." when I call Window.Show.
  2. a. With .NET's DataGrid, all I have to do is Handle the AutoGeneratingColumn Event and for each "e.Column.SortMemberPath == nameof(MyItemClass.MyDateTime)" set "((System.Windows.Data.Binding)((System.Windows.Controls.DataGridBoundColumn)e.Column).Binding).StringFormat" = "ddd MM/ dd / yy hh:mm tt" (e.g. without having to, in XAML, hard-code a Column's Bound Source Property Name and the Column's Width). Is your solution the closest DataGridControl equivalent to that? b. What does DataGridControl not have a AutoGeneratingColumn Event?
  3. When / how would one, in Code Behind vs. XAML, use the CellContentStringFormat Property?
  4. When / how would one, in Code Behind vs. XAML, use the DisplayedValueConverter Property?

Viewing all articles
Browse latest Browse all 4964

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>