By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,262 Members | 1,128 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,262 IT Pros & Developers. It's quick & easy.

DataGridView and period / oemperiod

P: n/a

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.

--
Larry Lard
la*******@googlemail.com
The address is real, but unread - please reply to the group
For VB and C# questions - tell us which version
Oct 12 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Are you looking for this.
http://msdn2.microsoft.com/en-us/library/bxt3k60s.aspx

chanmm

"Larry Lard" <la*******@googlemail.comwrote in message
news:4p************@individual.net...
>
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.

--
Larry Lard
la*******@googlemail.com
The address is real, but unread - please reply to the group
For VB and C# questions - tell us which version

Oct 12 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.