How to validate gridview cell ?
Are you looking for a way to validate gridview cell ? then read this thread to know more about it
I want to key only two characters in datagridview cell. In Datagridview I have 3 columns. Only first column i want to validate that key only 2 characters. I have tried with the below code. But not working.
private void dataGridView1_CellValueChanged(object sender, DataGridViewCellEventArgs e)
DataGridViewTextBoxColumn inputbreak = new DataGridViewTextBoxColumn();
inputbreak.MaxInputLength = 2;
I have tried this in KeyPress Event too... But not working. Could anyone help me to do this.