Click here to Skip to main content
15,890,946 members
Home / Discussions / C#
   

C#

 
GeneralRe: Drawing with c# Pin
trønderen24-Jun-22 17:02
trønderen24-Jun-22 17:02 
QuestionSimple Paint app in winforms Pin
Aafaan_Jii20-Jun-22 23:19
Aafaan_Jii20-Jun-22 23:19 
AnswerRe: Simple Paint app in winforms Pin
OriginalGriff20-Jun-22 23:40
mveOriginalGriff20-Jun-22 23:40 
AnswerRe: Simple Paint app in winforms Pin
Pete O'Hanlon21-Jun-22 2:18
mvePete O'Hanlon21-Jun-22 2:18 
AnswerRe: Simple Paint app in winforms Pin
Dave Kreskowiak21-Jun-22 4:39
mveDave Kreskowiak21-Jun-22 4:39 
AnswerRe: Simple Paint app in winforms Pin
Gerry Schmitz21-Jun-22 4:45
mveGerry Schmitz21-Jun-22 4:45 
QuestionHTML Input Controls Value Pin
Member 1431490219-Jun-22 18:46
Member 1431490219-Jun-22 18:46 
AnswerRe: HTML Input Controls Value Pin
OriginalGriff19-Jun-22 19:32
mveOriginalGriff19-Jun-22 19:32 
GeneralRe: HTML Input Controls Value Pin
Member 1431490219-Jun-22 19:47
Member 1431490219-Jun-22 19:47 
GeneralRe: HTML Input Controls Value Pin
Richard Deeming19-Jun-22 21:38
mveRichard Deeming19-Jun-22 21:38 
GeneralRe: HTML Input Controls Value Pin
OriginalGriff19-Jun-22 21:51
mveOriginalGriff19-Jun-22 21:51 
GeneralRe: HTML Input Controls Value Pin
Dave Kreskowiak20-Jun-22 3:49
mveDave Kreskowiak20-Jun-22 3:49 
GeneralRe: HTML Input Controls Value Pin
Member 1431490220-Jun-22 3:56
Member 1431490220-Jun-22 3:56 
GeneralRe: HTML Input Controls Value Pin
Dave Kreskowiak20-Jun-22 3:57
mveDave Kreskowiak20-Jun-22 3:57 
GeneralRe: HTML Input Controls Value Pin
Member 1431490220-Jun-22 3:58
Member 1431490220-Jun-22 3:58 
GeneralRe: HTML Input Controls Value Pin
Dave Kreskowiak20-Jun-22 4:00
mveDave Kreskowiak20-Jun-22 4:00 
GeneralRe: HTML Input Controls Value Pin
Mycroft Holmes20-Jun-22 12:31
professionalMycroft Holmes20-Jun-22 12:31 
QuestionHow filter a DataGridView filled from csv file... Pin
grennday11-Jun-22 21:06
grennday11-Jun-22 21:06 
AnswerRe: How filter a DataGridView filled from csv file... Pin
Richard MacCutchan11-Jun-22 21:18
mveRichard MacCutchan11-Jun-22 21:18 
GeneralRe: How filter a DataGridView filled from csv file... Pin
grennday15-Jun-22 19:40
grennday15-Jun-22 19:40 
GeneralRe: How filter a DataGridView filled from csv file... Pin
Richard MacCutchan15-Jun-22 22:03
mveRichard MacCutchan15-Jun-22 22:03 
GeneralRe: How filter a DataGridView filled from csv file... Pin
grennday16-Jun-22 20:15
grennday16-Jun-22 20:15 
Hello Richard, I dont know if my code can be helpfull for this, btw
At runtime the user can use normally a DataGridView by filling cells with some datas.
When user write datas on a row, it is visible on the left a little pensil who inform us that we are in edit mode.
After that the user ends to write datas he should click on enter on keyboard. The enter key event do somethings (as ending edit mode, go to the next row...) that I dont understand but who is needed to "save" the row as new datas in the DataGridView.

I use the following code to export DataGridView into database.mdf file, but at runtime, an added row in DataGridView is taken into account and correctly exported to MyDatabase.mdf only if I click enter key to "validate" the datas of the row that I wrote.

sometimes I forget to click enter (the little pensil image is still shown on the left of the row when I am typing) and the following code doesent export this row on MyDatabase.mdf

I would like to wrote some code here, for "validate" programmatically the new row on the datagridview in order that it is correctly exported on the MyDatabase.mdf file even when the user forget to click enter key


C#
private void SaveToMyDatabaseBtn_Click(object sender, EventArgs e)
       {
           ClientsTableAdapter.Update(dataSet.ClientsTable);
       }


many thanks
GeneralRe: How filter a DataGridView filled from csv file... Pin
Richard MacCutchan16-Jun-22 20:55
mveRichard MacCutchan16-Jun-22 20:55 
GeneralRe: How filter a DataGridView filled from csv file... Pin
grennday17-Jun-22 19:47
grennday17-Jun-22 19:47 
GeneralRe: How filter a DataGridView filled from csv file... Pin
Richard MacCutchan17-Jun-22 21:59
mveRichard MacCutchan17-Jun-22 21:59 

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.