I hope this is simple, how can I edit a cell to not allow spaces. The cell is required, and if I hit the spacebar and then enter it accepts it. This is what I have to edit it right now:
private void StateRadGridView1_CellValidating(object sender, CellValidatingEventArgs e)
{
GridViewDataColumn column = e.Column as GridViewDataColumn;
if (e.Row is GridViewDataRowInfo && column != null && column.FieldName == "MntStaName")
{
if (string.IsNullOrEmpty((string)e.Value))
{
MessageBox.Show("Description cannot be blank.", "JMS Error Message", MessageBoxButtons.OK, MessageBoxIcon.Stop);
}
}