Skip to main content
Home Forums Silverlight Programming Programming with .NET - General How can I start edit DataGrid cell pressing another keys than 'F2' and copy pressed char to textbox in editing template ?
1 replies. Latest Post by Martin Kruszynski on September 12, 2008.
(0)
Martin K...
Member
15 points
27 Posts
09-12-2008 4:13 AM |
I would like implement start editing cell in DataGridTemplateColumn with pressing 'text characters' (like http://www.devnewsgroups.net/group/microsoft.public.dotnet.framework.windowsforms/topic5060.aspx) - like MS Excel.
DataGrid processes internal F2 keydown event and other specials like KeyDown, KeyUp etc.
dataGrid.BeginEdit(); }
}
void
KeyEventArgs args = e.EditingEventArgs as KeyEventArgs;
KeyEventArgs is not null when I press F2, but is null when I press 'A', 'B', 'C' etc...
How can I catch which key causes start edition cell and copy letter/digit to Text of Textbox (in DataGrid Cell editing template) ?
09-12-2008 4:44 AM |
I know this:
dataGrid.BeginEdit(e);
instead of dataGrid.BeginEdit(e);