Is there a way to default the date to today's date and remove the time (in red) in the add row section of the grid.
Hello,
I am just checking the progress of this issue and was wondering if you managed to achieve your goal or if you need any further assistance on the matter.
If the above suggestion helped you solve your issue please verify the thread as answered so other users may take better advantage of it.
Hi again,
As I mentioned in my previous reply all you need to do is add a setting for your DateTime value in the underlying data object’s class like I have done in the picture I sent.
Please let me know if you have tried this.
Hi Petar,
Thanks for looking into this. I am binding the grid to an observable collection. The grid loads fine with the date. The one I like to default is the add row section of the grid. When it is clicked and is enabled for entry it defaults the date to an invalid date. I would like to default that to todays date.
Hello mmalsor,
I have been looking into your enquiry and usually the default values in the AddNewRow come from the data object class’s default constructor, however by only setting the ItemsSource to my XamGrid I get a different result, which seems to be what you are looking for:
I suppose you have done some modifications that are causing this.
Please let me know if you require any further assistance on the matter.