Click here to Skip to main content
15,887,135 members
Home / Discussions / C#
   

C#

 
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.



GeneralRe: Adding a new Row to the DataGridView programmatically (DataGridView.AllowUserToAddRow = false) and then Cancel adding by press ESC Pin
alladeen6-Sep-09 17:13
alladeen6-Sep-09 17:13 
GeneralRe: Adding a new Row to the DataGridView programmatically (DataGridView.AllowUserToAddRow = false) and then Cancel adding by press ESC Pin
Mycroft Holmes6-Sep-09 17:39
professionalMycroft Holmes6-Sep-09 17:39 
GeneralRe: Adding a new Row to the DataGridView programmatically (DataGridView.AllowUserToAddRow = false) and then Cancel adding by press ESC Pin
alladeen6-Sep-09 17:56
alladeen6-Sep-09 17:56 
GeneralRe: Adding a new Row to the DataGridView programmatically (DataGridView.AllowUserToAddRow = false) and then Cancel adding by press ESC Pin
Mycroft Holmes6-Sep-09 18:09
professionalMycroft Holmes6-Sep-09 18:09 
QuestionOne solution, few projects and one exe without dlls Pin
dexter.wrocek6-Sep-09 9:37
dexter.wrocek6-Sep-09 9:37 
AnswerRe: One solution, few projects and one exe without dlls Pin
Christian Graus6-Sep-09 11:02
protectorChristian Graus6-Sep-09 11:02 
AnswerRe: One solution, few projects and one exe without dlls Pin
Abhishek Sur6-Sep-09 11:08
professionalAbhishek Sur6-Sep-09 11:08 
GeneralRe: One solution, few projects and one exe without dlls Pin
Mycroft Holmes6-Sep-09 16:57
professionalMycroft Holmes6-Sep-09 16:57 
GeneralRe: One solution, few projects and one exe without dlls Pin
Christian Graus6-Sep-09 17:05
protectorChristian Graus6-Sep-09 17:05 
Questioncontrolling the mouse programatically. Pin
asizo6-Sep-09 6:55
asizo6-Sep-09 6:55 
AnswerRe: controlling the mouse programatically. Pin
Wamuti6-Sep-09 7:53
Wamuti6-Sep-09 7:53 
Questioncreate & delete dynamic rows which containa textboxes & buttons on clicking dynamicaly generated buttuns. Pin
ambiguity_solver6-Sep-09 6:40
ambiguity_solver6-Sep-09 6:40 
AnswerRe: create & delete dynamic rows which containa textboxes & buttons on clicking dynamicaly generated buttuns. Pin
Christian Graus6-Sep-09 12:44
protectorChristian Graus6-Sep-09 12:44 
GeneralRe: create & delete dynamic rows which containa textboxes & buttons on clicking dynamicaly generated buttuns. Pin
ambiguity_solver7-Sep-09 19:15
ambiguity_solver7-Sep-09 19:15 
QuestionBits and Bitmask - how to write? Pin
Daniel Leykauf6-Sep-09 6:30
Daniel Leykauf6-Sep-09 6:30 
AnswerRe: Bits and Bitmask - how to write? Pin
harold aptroot6-Sep-09 7:14
harold aptroot6-Sep-09 7:14 
GeneralRe: Bits and Bitmask - how to write? Pin
Daniel Leykauf6-Sep-09 9:29
Daniel Leykauf6-Sep-09 9:29 

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.