Click here to Skip to main content
15,902,299 members
Home / Discussions / C#
   

C#

 
GeneralRe: How can i get the temperature of the cpu? Pin
OriginalGriff6-Sep-09 22:27
mveOriginalGriff6-Sep-09 22:27 
AnswerRe: How can i get the temperature of the cpu? [modified] Pin
OriginalGriff6-Sep-09 22:32
mveOriginalGriff6-Sep-09 22:32 
QuestionInsert Hyperlink inside Rich Text Box in C#.NET Pin
Isaac Gordon6-Sep-09 21:53
Isaac Gordon6-Sep-09 21:53 
AnswerRe: Insert Hyperlink inside Rich Text Box in C#.NET Pin
stancrm6-Sep-09 22:03
stancrm6-Sep-09 22:03 
QuestionMaster page load error Pin
EmZan6-Sep-09 21:51
EmZan6-Sep-09 21:51 
AnswerRe: Master page load error Pin
Christian Graus6-Sep-09 22:11
protectorChristian Graus6-Sep-09 22:11 
QuestionSending SMS from your SmartPhone Pin
Learpheal6-Sep-09 20:57
Learpheal6-Sep-09 20:57 
AnswerRe: Sending SMS from your SmartPhone Pin
stancrm6-Sep-09 21:07
stancrm6-Sep-09 21:07 
Questionusing loop to read all files Pin
sh.alamdari6-Sep-09 19:46
sh.alamdari6-Sep-09 19:46 
AnswerRe: using loop to read all files Pin
Christian Graus6-Sep-09 20:05
protectorChristian Graus6-Sep-09 20:05 
GeneralRe: using loop to read all files Pin
sh.alamdari6-Sep-09 20:45
sh.alamdari6-Sep-09 20:45 
GeneralRe: using loop to read all files Pin
Christian Graus6-Sep-09 21:32
protectorChristian Graus6-Sep-09 21:32 
AnswerRe: using loop to read all files Pin
Mycroft Holmes6-Sep-09 20:08
professionalMycroft Holmes6-Sep-09 20:08 
GeneralRe: using loop to read all files PinPopular
Christian Graus6-Sep-09 20:12
protectorChristian Graus6-Sep-09 20:12 
GeneralRe: using loop to read all files Pin
Mycroft Holmes6-Sep-09 20:21
professionalMycroft Holmes6-Sep-09 20:21 
GeneralRe: using loop to read all files Pin
Christian Graus6-Sep-09 20:26
protectorChristian Graus6-Sep-09 20:26 
GeneralRe: using loop to read all files Pin
Mycroft Holmes6-Sep-09 20:38
professionalMycroft Holmes6-Sep-09 20:38 
GeneralRe: using loop to read all files Pin
sh.alamdari6-Sep-09 22:12
sh.alamdari6-Sep-09 22:12 
QuestionPrinting a HTML file ? Pin
Mohammad Dayyan6-Sep-09 19:42
Mohammad Dayyan6-Sep-09 19:42 
AnswerRe: Printing a HTML file ? Pin
Christian Graus6-Sep-09 20:06
protectorChristian Graus6-Sep-09 20:06 
GeneralRe: Printing a HTML file ? Pin
Mohammad Dayyan7-Sep-09 0:50
Mohammad Dayyan7-Sep-09 0:50 
Questionhow to get Number of copies the jobs related Pin
nisharafic6-Sep-09 17:50
nisharafic6-Sep-09 17:50 
AnswerRe: how to get Number of copies the jobs related Pin
stancrm6-Sep-09 18:06
stancrm6-Sep-09 18:06 
QuestionAdding a new Row to the DataGridView programmatically (DataGridView.AllowUserToAddRow = false) and then Cancel adding by press ESC [modified] Pin
alladeen6-Sep-09 11:26
alladeen6-Sep-09 11:26 
AnswerRe: Adding a new Row to the DataGridView programmatically (DataGridView.AllowUserToAddRow = false) and then Cancel adding by press ESC Pin
Mycroft Holmes6-Sep-09 16:54
professionalMycroft Holmes6-Sep-09 16:54 
a few points.

alladeen wrote:
Double Click the Button

Single click on a button is the standard - I recommend you not change this.

You are running up against the most common problem with editing a list control, management is a nightmare. I recommend that you pop a dialog form you do the AED functions. I do the following

I have a menu strip with AED buttons.
Add passes 0 as the ID to a dialgo specifically build to manage the table/entity you want to work with.
Edit passes the currently selected rows ID value to the same form
Delete asks the used to confirm delete.

The dialog form allows you to have very fine control on the users input and writes the data back to the database, return dialogresult OK or Cancel to the parent form.

If the result was Ok/Delete (from the delete method) then the form reloads the DGV from the database. This entails some redundant calls to the database but MY DATA ALWAYS REFLECTS THE DATABASE information.



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.