Geeks With Blogs
HanSolo code monkey September 2009 Entries
DataGridView upper case textbox column
It's a shame that the DataGridViewTextBoxColumn class doesn't allow you to set the casing so that you can restrict user input to all upper or lower case letters. Fortunately, it's actually pretty easy to create a custom column class to do just that. public class DataGridViewUpperCaseTextBo... : DataGridViewTextBoxColumn { public DataGridViewUpperCaseTextBo... : base() { CellTemplate = new DataGridViewUpperCaseTextBo... } } public class DataGridViewUpperCaseTextBo... : DataGridViewTextBoxCell ......

Posted On Tuesday, September 15, 2009 12:30 AM

Copyright © HanSolo | Powered by: