DataGridView and period / oemperiod

L

Larry Lard

I'm trying to find where this behaviour is documented:

Create a new WinForms app in VC#2005, drop a DataGridView on the form.
Put this code in the ctor after InitializeComponent:

DataGridView1.Columns.Add("foo", "foo");
DataGridViewComboBoxColumn col = new
DataGridViewComboBoxColumn();
col.DataSource = new List<string>(new string[] { "",
"apple", "banana", "pear" });
DataGridView1.Columns.Add(col);

DataGridView1.Rows.Add(1, "");
DataGridView1.Rows.Add(1, "");
DataGridView1.Rows.Add(1, "");
DataGridView1.Rows.Add(1, "");
DataGridView1.Rows.Add(1, "");

We just add a text column and a combobox column. Run the app. Make a
cell in the combobox column the current cell.

Press the period (.) key.

Note that the cell enters edit mode.

Who can tell me where this is implemented and/or documented?

Note that neither KeyDown nor KeyPress fire when this happens.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top