Subscribe to Subscribers
Talk to Webmaster Tony John

Online Members

tegegn seyfe
More...

Forums » .NET » Windows »

Specific format Datagridcell


Posted Date: 29 Jun 2012      Posted By:: smile     Member Level: Silver    Member Rank: 997     Points: 2   Responses: 2



I have a datagrid and one of its cell is of type DataGridViewTextBoxColumn and i need to enter time in this cell and format is HH:MM . After entering HH i want to automatically get : and cursor also shld move next to enter MM. Any suggestions sld appreticated

Thanks in adavance




Responses

#678165    Author: sudhajosyula      Member Level: Gold      Member Rank: 46     Date: 29/Jun/2012   Rating: 2 out of 52 out of 5     Points: 3

My suggestion is on change of the cell value of the text box,write .NET code to append ":" automatically when the user enters "HH" and focus the cursor after ":" in order to enter "MM".It think you have to consider the length of the textbox and check it should be equal to 5 only.Based on this condition,you have to append ":" in the textbox..


 
#678210    Author: smile      Member Level: Silver      Member Rank: 997     Date: 30/Jun/2012   Rating: 2 out of 52 out of 5     Points: 1

sudha can u please tell me which event would be appropriate for appending : in the cell od datagridview


 
Post Reply

 This thread is locked for new responses. Please post your comments and questions as a separate thread.
If required, refer to the URL of this page in your new post.



Next : How to run the exe file of windows xp 32 bit in windows7 64 bit
Previous : Encrypt and decrypt video using 128bit code
Return to Discussion Forum
Post New Message
Category:

Related Messages
Active Members
TodayLast 7 Daysmore...

Awards & Gifts
Copyright © SpiderWorks Technologies Pvt Ltd., Kochi, India
2005 - 2012 All Rights Reserved.
.NET and other trademarks mentioned in this site belong to Microsoft and other respective trademark owners.
Articles, tutorials and all other content offered here is for educational purpose only.
We are not associated with Microsoft or its partners.