Click here to Skip to main content
15,440,341 members
Home / Discussions / C#
   

C#

 
GeneralRe: HTML Input Controls Value Pin
Member 1431490220-Jun-22 3:58
MemberMember 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
Membergrennday11-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
Membergrennday15-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
Membergrennday16-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
Membergrennday17-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 
GeneralRe: How filter a DataGridView filled from csv file... Pin
Eddy Vluggen18-Jun-22 11:11
professionalEddy Vluggen18-Jun-22 11:11 
GeneralRe: How filter a DataGridView filled from csv file... Pin
grennday18-Jun-22 20:55
Membergrennday18-Jun-22 20:55 
GeneralRe: How filter a DataGridView filled from csv file... Pin
grennday24-Jun-22 21:14
Membergrennday24-Jun-22 21:14 
QuestionIVideoWindow.SetWindowPosition not working Pin
Le@rner8-Jun-22 21:18
MemberLe@rner8-Jun-22 21:18 
AnswerRe: IVideoWindow.SetWindowPosition not working Pin
OriginalGriff8-Jun-22 21:53
mveOriginalGriff8-Jun-22 21:53 
QuestionLists C# Pin
Rui Couto6-Jun-22 3:23
MemberRui Couto6-Jun-22 3:23 
AnswerRe: Lists C# Pin
OriginalGriff6-Jun-22 3:54
mveOriginalGriff6-Jun-22 3:54 
GeneralRe: Lists C# Pin
Rui Couto6-Jun-22 5:16
MemberRui Couto6-Jun-22 5:16 
GeneralRe: Lists C# Pin
OriginalGriff6-Jun-22 5:54
mveOriginalGriff6-Jun-22 5:54 
GeneralRe: Lists C# Pin
James Curran21-Jun-22 7:31
MemberJames Curran21-Jun-22 7:31 
GeneralRe: Lists C# Pin
OriginalGriff21-Jun-22 11:26
mveOriginalGriff21-Jun-22 11:26 
AnswerRe: Lists C# Pin
James Curran21-Jun-22 7:52
MemberJames Curran21-Jun-22 7:52 
GeneralRe: Lists C# Pin
Rui Couto29-Jun-22 23:51
MemberRui Couto29-Jun-22 23:51 
QuestionMixed mode assembly is built against version 'v2.0.50727' Pin
Le@rner2-Jun-22 0:38
MemberLe@rner2-Jun-22 0:38 

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.