Hi,
I have a read-only TextColumn with IsFilterable = true.
The filter pop-up looks like this and is more of a string search:
https://ibb.co/b5wSkk
Is there a way that the filter looks more geared towards a "DateTime" data type like in Windows:
https://ibb.co/bNg4WQ
Is there a more appropriate column type to use instead of a Text Column? I would not need a date picker for the row values, just a regular text string but the filter should be able to have a date picker of some sort.
Thanks!
Hello Erika,
You should be able to format the cell using XamDateTimeInput style’s Format property like below.
<Style TargetType="{x:Type ig:XamDateTimeInput}"> <Setter Property="Format" Value="yyyyMMdd hh:mm:ss" /></Style>
If you wish to make a cell blank when it has particular data, you can set ValueConverter to the target column.
<ig:DateTimeColumn Key="Value" ... ValueConverter="{StaticResource myConverter}"/>
I have attached the modified sample.
I have not been able to reproduce the faint border you mentioned.
Can you please test the attached sample to see if the issue is reproducible there?
Thank you,Mihoko Kamiishi
It looks like it is becoming Selected (all items in that column) when being sorted. How do I deselected the rows.
Also, when sorting, I am getting a faint border of some sort:
https://ibb.co/h8S3bQ
How do I get rid of this?
Thanks for you help. I have a few more questions:
1. How do I format the date time to something like: 20170515 11:23.11
2. How do I not show (empty cell) date time that is equal to the default(datetime) which is 01/01/0001 12:00 AM
I would suggest you adjust some padding and border properties of a target CellControl and XamDateTimeInput in order to achieve your requirement.
I have attached the sample project.
Please let me know if I may be of further assistance.