Click here to Skip to main content
15,888,579 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

Can we place a MaskedTextbox inside the Datagridview or not?
means
Exa: Datagridview1.Columns.Add(Maskedtextbox1)
If possible do let me know.
Advance Thanks to one and all.

Sincerly,
Pawan.
Posted

1 solution

Answer to if they can be added: Yes! they can be added. It's possible.

Couple of days back you asked this question: http://www.codeproject.com/Questions/93963/How-to-Validate-a-Textbox-inside-the-DataGridView-.aspx[^]
Regular expression looked like the solution that was acceptable to you, but then you were unable to form a regular expression that suits you.

Now, though after providing full details on regular expression[^], you are back to masked textbox.
Try and be sure of what you need to do. Don't just hit and try.
 
Share this answer
 
Comments
Pawan Kiran 17-Jul-10 9:50am    
sincere thanks to you, but i am sure that Datagridview is not accepting MaskedTextbox inside the DataGridview Columns. i can't explain how much time i spent on those. If there is no class of type DataGridViewMaskedTextboxColumn how can i go through with maskedtextbox.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900