Hi,
I have a datGrid which related to a DataTable.
i want to create a KeyDown evet on one of my table's cell, this is what i did:
dgtbc = dgtsPay.GridColumnStyles[2] as DataGridTextBoxColumn;
if(dgtbc != null)
{
dgtbc.TextBox.KeyDown += new
System.Windows.Forms.KeyEventHandler(this.payed_ce ll_KeyUp);
dgtbc.TextBox.KeyUp += new
System.Windows.Forms.KeyEventHandler(this.payed_ce ll_KeyDown);
}
i created each event, but when i'm on that specific cell, nothing happens,
the event is not called.
this cell represents a date that the user enters, the format of the date is
dd\mm\yy
i want to enter the "\" automaticly each time it suppose to be.
thanks,
Gidi.