473,325 Members | 2,308 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,325 software developers and data experts.

DataGridView and period / oemperiod


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
1 4800
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Chris | last post by:
It would seem a simple thing and maybe I'm being blind, but why is there no System.Windows.Forms.Keys.Period When I press the "." key, a ascii code 46 comes through, which is equal to the enum...
10
by: Henok Girma | last post by:
Hello Gurus, I want to save the state of an unbound DataGridView on my Windows Form application to an XML file so i can later load it back.. Basically, on my form I have a DataGridView, it's got...
3
by: Rich | last post by:
Hello, I am populating a datagridview from a datatable and filtering the number of rows with a dataview object. Is there a way to retrieve the rows displayed by the datagridview into a separate...
2
by: bob | last post by:
Can anyone tell me the best way to update a dataset while it is being edited/viewed in the DataGridView control? Is this something that should be inserted into one of the grid's events? or should...
7
by: Mitchell S. Honnert | last post by:
Is there an equivalent of the DataGrid's DataGridTableStyle for the DataGridView? If not, is there an easy way to duplicate the DataGridTableStyle's functionality for the DataGridView? Here's...
7
by: =?Utf-8?B?TG9zdEluTUQ=?= | last post by:
Hi All :) I'm converting VB6 using True DBGrid Pro 8.0 to VB2005 using DataGridView. True DBGrid has a MultipleLines property that controls whether individual records span multiple lines. Is...
0
by: jeastman - Hotmail | last post by:
Hello world Excuse, not to be written English and it helps me with a translator. I am new programming in C#. I made a control inheriting the DataGridView to be able to add controls done by...
3
by: Andrus | last post by:
I have DataGridView in virtual mode containing 3500 rows. In code below, assigning to RowCount value to 3500 takes 8 seconds. CPU usage goes high at this time. Stepping by F11 into user code shows...
0
by: priyamtheone | last post by:
I'm trying to make a datagridview column to act like a datetimepicker column (C#.Net 2005). These are the behaviours that the dgv should have: 1) Initially all the cells of the dtp column should be...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.