New Product Launch - BoldDesk !
Introducing help desk ticketing software.
New Product LaunchBoldDesk: Help desk ticketing software starts at $10 for 3 agents.
Try it for free.foreach(Control c in this.dataGrid1.Controls) { TextBox tb = c as TextBox; if(tb != null) { tb.KeyPress += new KeyPressEventHandler(CellKeyPress); } }Then in your CellKeyPress method, check to see if you are on the cell you want to be uppercase, and if so, handle things. Here is a try at this.
private void CellKeyPress(object sender, System.Windows.Forms.KeyPressEventArgs e) { if(this.dataGrid1.CurrentRowIndex == 1 && this.dataGrid1.CurrentCell.ColumnNumber == 1) { TextBox tb = sender as TextBox; if(tb != null && char.IsLetter(e.KeyChar) && !char.IsUpper(e.KeyChar)) { SendKeys.Send(char.ToUpper(e.KeyChar).ToString()); e.Handled = true; } } }