Hi
i have Datetime column with Format of "HH:mm" , what i need is when i set the Cell Value to 2 say or any Single Numer 1,2,3 ... it Discard it for Datatype Reason what i need is to set the Value to 2:00 once he type No. 2 ,3,4 .... so it can be Accepted
in Windows i was having before update :) can i handle this here
and thank you
Hello,
I am not sure I understand the question - I hope I do, but I believe you need to modify the cell display value based on certain condition from your datasource? If this is the case, you can handle the InitializeRow event and modify content there.
Please, take a look at the following forum post for details and sample implementation
http://forums.infragistics.com/forums/p/3207/17678.aspx#17678
Actually i have Already Set the Datasource My Problem is in the Edit mode of the Cell
When i Edit the cell value .. and where the Column datatype is dateTime when i Edit the Cell to Value "2" what i mean is 2 Hours but it's not Accepted i must Enter "2:00" or "2:" to be Accepted as hours ... what i need is to able users to Enter the Hours Number and i Convert it to 2:00 or 3:00 ... etc
hope i Explain it Right :)
Alright :) Thanks for the follow-up. I again hope I get it right - if not, please do not hesitate to correct me again.
So you need special editor to take care of validating user input while editing DateTime cells in grid? If this is the case, then I believe this is the sample you need:
http://samples.infragistics.com/2008.2/webfeaturebrowser/WebTextEditors/CellEditors/CellEditors.aspx
Just click on any of the cells containing dates and you will see how our DataTime editor takes care of that.
Hope this hepls.