473,396 Members | 2,010 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,396 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 4802
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.