Hello,
I am facing one problem
i have 5 column inside Ultrawebgrid and one column is date field column
when date field coulmn in edit mode it is display date in "Sat Feb 2 00:00:00 UTC+0530 2008" format
but i want date format in "MM/dd/yyyy" in edit mode of cell.
is there any way to set date format cell in "MM/dd/yyyy" when cell Edit mode?
Thanks in Advance.
Sonu.
Normal 0 21 false false false BG X-NONE X-NONE /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0cm 5.4pt 0cm 5.4pt; mso-para-margin-top:0cm; mso-para-margin-right:0cm; mso-para-margin-bottom:10.0pt; mso-para-margin-left:0cm; line-height:115%; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:"Times New Roman"; mso-fareast-theme-font:minor-fareast; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin;}
I tried to find a suitable property for your case, unfortunately to not avail... that is default formatting of the UltraWebGrid. You can use WebDateChooser or WebMaskEdit
Hope this helps.
Thanks for your reply.. But sorry this is not my requirement. My Requirement is the Grid should Display the dates in MM/DD/YYYY format only. but when we go in Edit mode of the Cell then it should not mask the control. i mean to say on EditMode the control should be blank, without masking and user can enter the date in any format while editing or entering. but finally the grid should display in the Correct format after submit.
Please reply soon,
Thanks,
I use the webDateTimeEdit control to format my date columns in my grids. That would easily get you the mm/dd/yyyy format. I wonder if you could do that and then setup a event to change the format when the user double clicked the field.
That was also what I was going to suggest - if you need fine control on the format of the date in the edit cell, its best to point the EditorControlID property of the respective columns to the ID of an WebDateTimeEdit control - you can control the format of the date to great details there using masks and format strings.
Thanks for your reply
But when i use EditorControlID With WebDateTimeEdit control when i add new recored on grid level edit cell mode format display like __/__/____ but my requirement is display blank same as Textbox so user enter any of date format. so is there any way to do blank in edit cell mode using WebDateTimeEdit.
Please reply as soon as possible.