Hi there,
thanks for your reply.
I finally broke the back of it anyways, i needed to add the keppress event
handler to the editfield.
dataGridView1.EditingControlShowing += new
DataGridViewEditingControlShowingEventHandler(data GridView1_EditingControlShowing);
void dataGridView1_EditingControlShowing(object sender,
DataGridViewEditingControlShowingEventArgs e)
{
dataGridView1.EditingControl.KeyPress += delegate(object
keyPressSender, KeyPressEventArgs keyPressArgs)
{
keyPressArgs.Handled = true;
Console.WriteLine(keyPressArgs.KeyChar.ToString()) ;
};
}
"Andry_R" wrote:
Hi
Looks like you should handle KeyPressed event and filter our input there.
You can write handler rather for our DataGrid or for it's parent form.
--------------------
Good luck!
Andry