Click here to Skip to main content
15,906,106 members
Home / Discussions / C#
   

C#

 
Generalinserting to db using access db Pin
_sercher_19-Oct-04 4:20
_sercher_19-Oct-04 4:20 
GeneralDatabinding need help Pin
fortyonejb19-Oct-04 3:53
fortyonejb19-Oct-04 3:53 
GeneralRe: Databinding need help Pin
Christian Graus19-Oct-04 9:44
protectorChristian Graus19-Oct-04 9:44 
GeneralRe: collection question Pin
isittheweekendyet19-Oct-04 3:45
isittheweekendyet19-Oct-04 3:45 
GeneralRe: collection question Pin
sreejith ss nair19-Oct-04 5:09
sreejith ss nair19-Oct-04 5:09 
GeneralRe: collection question Pin
sreejith ss nair19-Oct-04 5:09
sreejith ss nair19-Oct-04 5:09 
Generaldelete string-value Pin
mathon19-Oct-04 3:32
mathon19-Oct-04 3:32 
GeneralDataGrid "Special Key" Confusion Pin
RockmanHero200319-Oct-04 2:00
RockmanHero200319-Oct-04 2:00 
Hello,

I'm writing a custom DataGrid and in it i want to have some default actions occur. For example, what I have now, I cannot edit any rows (I only select full rows), multi-row selection is allowed, and the delete key will delete all currently selected rows.

But then there's this weird factor. When I press the up arrow key, I want my currently selected row to move to the previous one (the general case), and vice versa when I press the down key. But when I push Up, Down, Left, and Right (along with some other different keys), the KeyDown event handler for the DataGrid isn't called. Instead, the column style Edit event handler is called.

I thought I could just create a new event that would call an event handler from inside the Edit handler; however I would have no means to send off which key was pressed.

Does anyone know how to do this? I've been thinking about this and searching for what I need to override in order to do this, but to no avail. Can anyone help?

RockmanHero2003Confused | :confused:

A stitch in time is worth....two....in the bush
GeneralOverride Pin
Anonymous19-Oct-04 1:42
Anonymous19-Oct-04 1:42 
GeneralRe: Override Pin
Colin Angus Mackay19-Oct-04 2:11
Colin Angus Mackay19-Oct-04 2:11 
GeneralRe: Override Pin
Anonymous19-Oct-04 2:28
Anonymous19-Oct-04 2:28 
GeneralRe: Override Pin
Colin Angus Mackay19-Oct-04 2:35
Colin Angus Mackay19-Oct-04 2:35 
GeneralRe: Override Pin
Anonymous19-Oct-04 3:08
Anonymous19-Oct-04 3:08 
GeneralRe: Override Pin
Colin Angus Mackay19-Oct-04 3:22
Colin Angus Mackay19-Oct-04 3:22 
GeneralRe: Override Pin
Anonymous19-Oct-04 4:28
Anonymous19-Oct-04 4:28 
Questionhow not to use proxy cashe. Pin
yu-yu19-Oct-04 0:39
yu-yu19-Oct-04 0:39 
GeneralAdding a checkbox column Pin
scotlandc18-Oct-04 23:43
scotlandc18-Oct-04 23:43 
GeneralRe: Adding a checkbox column Pin
Heath Stewart19-Oct-04 7:37
protectorHeath Stewart19-Oct-04 7:37 
GeneralRe: Adding a checkbox column Pin
scotlandc21-Oct-04 0:13
scotlandc21-Oct-04 0:13 
GeneralKeyUp Event Pin
exhaulted18-Oct-04 23:03
exhaulted18-Oct-04 23:03 
GeneralRe: KeyUp Event Pin
Stefan Troschuetz18-Oct-04 23:50
Stefan Troschuetz18-Oct-04 23:50 
GeneralRe: KeyUp Event Pin
exhaulted19-Oct-04 4:46
exhaulted19-Oct-04 4:46 
GeneralRe: KeyUp Event Pin
Stefan Troschuetz19-Oct-04 4:59
Stefan Troschuetz19-Oct-04 4:59 
GeneralRe: KeyUp Event Pin
exhaulted19-Oct-04 5:37
exhaulted19-Oct-04 5:37 
GeneralRe: KeyUp Event Pin
Stefan Troschuetz19-Oct-04 9:19
Stefan Troschuetz19-Oct-04 9:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.