Click here to Skip to main content
15,903,362 members
Home / Discussions / C#
   

C#

 
GeneralRe: Startup hidden Pin
Joel Matthias12-Aug-02 11:58
Joel Matthias12-Aug-02 11:58 
GeneralRe: Startup hidden Pin
leppie12-Aug-02 12:23
leppie12-Aug-02 12:23 
GeneralForm.TopMost Pin
manson10-Aug-02 12:21
manson10-Aug-02 12:21 
GeneralRe: Form.TopMost Pin
Anonymous10-Aug-02 17:11
Anonymous10-Aug-02 17:11 
GeneralRe: Form.TopMost Pin
James T. Johnson10-Aug-02 21:44
James T. Johnson10-Aug-02 21:44 
GeneralRe: Form.TopMost Pin
Rama Krishna Vavilala11-Aug-02 5:22
Rama Krishna Vavilala11-Aug-02 5:22 
GeneralRe: Form.TopMost Pin
manson11-Aug-02 7:31
manson11-Aug-02 7:31 
QuestionDataGrid question (alternatively: how can I send a keydown event)? Pin
Domenic Denicola10-Aug-02 11:32
Domenic Denicola10-Aug-02 11:32 
I have my datagrid. User's entering data. Everyone's happy. UNTIL... I want to save my datagrid's data! Suspicious | :suss:

In general, upon RowChanged events, all the data is put into a proprietary data format within a class (for simplification, pretend it's a linked list for now). I save my data by looping through each node in this linked list.

However, if the user is in the middle of entering or editing a row when they want to save their data, that row was never entered into my linked list, because RowChanged was never called for that Row. And the worst part is, if the row is being added (as opposed to being edited), that row is not in myDataTable.Rows either. So when I want to save, the row the user is on is never saved.

My idea for a solution was to trigger a rowchanged event for this row. But this turns out to be rather hard, because that row does not exist anywhere! The only place I can find that row is within a rowchanged event. Unsure | :~

So to get around this, I was thinking the only way to fix this would be to use a hack, and try to make the datagrid think the user had pressed the down key. Unfortunately, I cannot figure this out! Help? How can I send a keydown message, either globally, or to my app, or (best of all I suppose), just to my DataGrid?

Or, does someone else know a way to effectively tell the datagrid, "do a rowchanged event on the row you are currently focused on!" Starting of the chain of events which puts that row in my linked list, which gets saved to a file.

(Why are my questions always so lengthy? Is that a good thing, or a bad one?)

Alright, I'm done now.

-Domenic Denicola- [CPUA 0x1337]
MadHamster Creations

"I was born human. But this was an accident of fate - a condition merely of time and place. I believe it's something we have the power to change..."

AnswerRe: DataGrid question (alternatively: how can I send a keydown event)? Pin
David Stone12-Aug-02 5:38
sitebuilderDavid Stone12-Aug-02 5:38 
GeneralTool Windows and Card Layout Pin
Anonymous10-Aug-02 11:05
Anonymous10-Aug-02 11:05 
GeneralRe: Tool Windows and Card Layout Pin
Domenic Denicola10-Aug-02 11:20
Domenic Denicola10-Aug-02 11:20 
GeneralRe: Tool Windows and Card Layout Pin
Anonymous10-Aug-02 21:32
Anonymous10-Aug-02 21:32 
Generalvb variants in c# Pin
Anonymous10-Aug-02 9:33
Anonymous10-Aug-02 9:33 
GeneralRe: vb variants in c# Pin
Jonathan Tan12-Aug-02 1:09
Jonathan Tan12-Aug-02 1:09 
QuestionDatagrid sorted, how to refresh data? Pin
Bar10-Aug-02 7:38
Bar10-Aug-02 7:38 
GeneralRegisterHotKey, small problem Pin
Anonymous10-Aug-02 0:15
Anonymous10-Aug-02 0:15 
GeneralRe: RegisterHotKey, small problem Pin
leppie10-Aug-02 0:27
leppie10-Aug-02 0:27 
GeneralRe: RegisterHotKey, small problem Pin
Anonymous10-Aug-02 7:01
Anonymous10-Aug-02 7:01 
GeneralDefine structs in C# Pin
leppie9-Aug-02 23:24
leppie9-Aug-02 23:24 
GeneralAnyone? Pin
leppie11-Aug-02 2:42
leppie11-Aug-02 2:42 
GeneralRe: Define structs in C# Pin
Eric Gunnerson (msft)12-Aug-02 6:42
Eric Gunnerson (msft)12-Aug-02 6:42 
GeneralRe: Define structs in C# Pin
leppie12-Aug-02 12:19
leppie12-Aug-02 12:19 
Generali install net frameworksdk Pin
imran_rafique9-Aug-02 21:41
imran_rafique9-Aug-02 21:41 
GeneralRe: i install net frameworksdk Pin
leppie9-Aug-02 21:58
leppie9-Aug-02 21:58 
GeneralRe: i install net frameworksdk Pin
imran_rafique9-Aug-02 22:53
imran_rafique9-Aug-02 22:53 

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.