Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
4622 | May 21,2003 04:07 PM UTC | May 23,2003 10:08 AM UTC | WinForms | 9 |
![]() |
Tags: GridControl |
private void gridDataBoundGrid1_CurrentCellShowingDropDown(object sender, GridCurrentCellShowingDropDownEventArgs e) { GridCurrentCell cc = this.gridDataBoundGrid1.CurrentCell; if(cc.Renderer is GridDropDownMonthCalendarCellRenderer) { GridDropDownMonthCalendarCellRenderer cr = cc.Renderer as GridDropDownMonthCalendarCellRenderer; DateTime dt = (DateTime) cc.Renderer.ControlValue; cc.Renderer.ControlText = dt.ToString("g"); } } private void gridDataBoundGrid1_CurrentCellCloseDropDown(object sender, PopupClosedEventArgs e) { GridCurrentCell cc = this.gridDataBoundGrid1.CurrentCell; if(cc.Renderer is GridDropDownMonthCalendarCellRenderer) { GridDropDownMonthCalendarCellRenderer cr = cc.Renderer as GridDropDownMonthCalendarCellRenderer; DateTime dt = (DateTime) cc.Renderer.ControlValue; cc.Renderer.ControlText = dt.ToString("yyyyMMdd"); } }
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
or the page will be automatically redirected to sign-in page in 10 seconds.