How to input in DataGridView cell Only Double ...
-
Saturday, March 10, 2012 3:49 PM
Hi All ,
I want to input in DatagridView Cell , Only Double Like 2.36 or 0.035 .thanks to give any help !RGDS!
All Replies
-
Saturday, March 10, 2012 4:05 PM
Take a look to this post: http://blogs.msdn.com/b/ketaanhs/archive/2005/09/19/471117.aspx.
It shows how to allow integer numbers only in the DataGridView, but you can easily adapt it to allow double numbers too.
Marco Minerva [MCPD]
Blog: http://blogs.ugidotnet.org/marcom
Twitter: @marcominerva- Marked As Answer by s_mostafa_h Saturday, March 10, 2012 4:12 PM
- Unmarked As Answer by s_mostafa_h Saturday, March 10, 2012 4:13 PM
- Marked As Answer by Lie YouModerator Monday, March 12, 2012 8:05 AM
- Unmarked As Answer by Lie YouModerator Monday, March 12, 2012 8:05 AM
- Proposed As Answer by Lie YouModerator Monday, March 12, 2012 8:12 AM
- Marked As Answer by Lie YouModerator Thursday, March 15, 2012 3:20 AM
-
Saturday, March 10, 2012 4:13 PMthanks in Advance !
-
Monday, March 12, 2012 8:11 AMModerator
I also would suggest you to check the below similar post.
http://www.codeproject.com/Articles/26005/DataGridViewColumn-Hosting-MaskedTextBox
It's a about use maskedTextBox in dataGridView.
Here is the MaskedTextBox document for your reference:
http://msdn.microsoft.com/en-us/library/system.windows.forms.maskedtextbox.aspx
Hope it helps.
Best Regards,
Rocky Yue[MSFT]
MSDN Community Support | Feedback to us
- Marked As Answer by Lie YouModerator Thursday, March 15, 2012 3:20 AM

