Setting Default Dates |
Post Reply |
Author | |
LittleJK
Senior Member Joined: 13 April 2006 Status: Offline Points: 168 |
Post Options
Thanks(0)
Posted: 26 February 2008 at 10:45am |
Hi I was wondering if anyone has been able to do this:
By default, the Property Grid item is blank (without a date) when clicked to show the calendar with Today's Date. In numerous locations we have property grids that contain a "start date" date item, and "end date" date item. A client asked if it's possible when entering a start date and an end date in the property grid that the dt picker calendars will not default to today but to the same month/year the user has first selected. Example: Start Date 11/1/2009, after picking that date the user would then click on the End Date to select 11/3/2009,the calendar will show today, then the user will have to change the year and month to match the start date. Thanks |
|
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
Hi,
When you select a propertygrid item the calendar does select the date value of the propertygrid item. I don't know why your calendar shows today's value?! Mine does, strange...
Then in the RequestEdit event you could set the end date as the begin date. (This could be a property setting for the user)
Private Sub wndPropertyGrid_RequestEdit(ByVal Item As XtremePropertyGrid.IPropertyGridItem, Cancel As Boolean)
Select Case Item.Id Case ID_ENDDATE Dim propItemDate As PropertyGridItemDate Set propItemDate = wndPropertyGrid.FindItem(ID_BEGINDATE) wndPropertyGrid.Selected.Value = propItemDate End Select End Sub |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |