Windows Develop Bookmark and Share   
 index > Windows Forms Data Controls and Databinding > Help! Number Pad Negative key not working in DataGrid ...
 

Help! Number Pad Negative key not working in DataGrid ...

Hello..
When using a Windows Forms DataGrid, the Negative key (-) does not register when pressed.
All the numbers on the pad work fine "0-9", including the "/" and "*" keys.

Am I missing something here ???

Also, the Negative Key along the top of the keyboard DOES work however.

Thanks in advance - B
MigrationUser 1  Wednesday, May 14, 2003 11:20 AM
A Sample - run this and try to use the NumberPad "Negative key"


private void Form1_Load(object sender, System.EventArgs e)
{
System.Data.DataTable DT = new System.Data.DataTable("ATable");
DT.Columns.Add("ACol");
System.Data.DataRow DR = DT.NewRow();
DR["ACol"] = "A";
DT.Rows.Add(DR);
dataGrid1.DataSource = DT;
}
MigrationUser 1  Wednesday, May 14, 2003 12:01 PM
This is a known issue that was fixed in Vs.Net 2003.
MigrationUser 1  Wednesday, May 14, 2003 5:44 PM
Thanks-
However - I do not yet have VS 2003 and am trying to capture keypress events to fix the error myself - but to no avail - the Negative key simply doesn't register.

BTW - where did you get information regarding the bug fix ???

   - B
MigrationUser 1  Thursday, May 22, 2003 10:02 AM

You can use google to search for other answers

Custom Search

More Threads

• An Item with the same key has already been added
• Strange problem with DataGridView column readonly property
• FillWeight and binding (DataGridView)
• associating DataGridView with EditingControlDataGridView
• Error:Synchronization error with Nested Datagrid
• DataGrid binding and multithread data access
• Adding to a DataTable At the top of the table NOT at the bottome
• DataGridViewComboBox blacks out (back color is set to KnownColor.Black) when using EditingControlShowing event
• combobox data binding
• Data binding a Datagrid that is embedded in a Windows Forms User Control Library.