Click here to Skip to main content
15,910,277 members
Home / Discussions / Windows Forms
   

Windows Forms

 
AnswerRe: application is not starting up at windows startup Pin
Dave Kreskowiak21-Mar-07 3:54
mveDave Kreskowiak21-Mar-07 3:54 
QuestionQuestion about C++ and C# ... Pin
Yanshof20-Mar-07 20:23
Yanshof20-Mar-07 20:23 
AnswerRe: Question about C++ and C# ... Pin
Christian Graus23-Mar-07 4:44
protectorChristian Graus23-Mar-07 4:44 
QuestionHow to define a visual scheme for a GUI *including* text? Pin
KeironN20-Mar-07 0:59
KeironN20-Mar-07 0:59 
AnswerRe: How to define a visual scheme for a GUI *including* text? Pin
Pete O'Hanlon20-Mar-07 1:46
mvePete O'Hanlon20-Mar-07 1:46 
GeneralRe: How to define a visual scheme for a GUI *including* text? Pin
KeironN20-Mar-07 8:11
KeironN20-Mar-07 8:11 
QuestionDataGridView not updating when DataSource updates Pin
mmfranke19-Mar-07 9:56
mmfranke19-Mar-07 9:56 
AnswerRe: DataGridView not updating when DataSource updates Pin
RabidHamster19-Mar-07 14:49
RabidHamster19-Mar-07 14:49 
The quickest solution is to call "this.eventsTableAdapter.Fill(this.dDBDataSet.Events)" after you insert the row. But this causes the entire grid to refresh, loosing the users scroll position and selection in the process.

The problem is that the row gets added to the database, but is not added to the table adapter. The Fill method reloads the data from the database into the table adapter.

The things you tried weren't working for various reasons. The Update method writes the changes that you just made to the database. It doesn't load changes back from the database. ResetBindings and Refresh didn't operate on the table adapter itself, which is what lacked the up-to-date data.

There may be a more complex solution to force the table adapter to load just the inserted row, but I don't know of it.

As an alternative to data binding, you might want to consider http://updatecontrols.net. These controls keep themselves up-to-date as your data changes. They don't bind directly to the database. Instead, they observe changes in your own data objects.
GeneralRe: DataGridView not updating when DataSource updates Pin
mmfranke20-Mar-07 3:00
mmfranke20-Mar-07 3:00 
GeneralRe: DataGridView not updating when DataSource updates Pin
mmfranke20-Mar-07 3:09
mmfranke20-Mar-07 3:09 
QuestionHow to convert existing C# Windows Application to C# Web Application.. Pin
MPS_DotNet18-Mar-07 21:08
MPS_DotNet18-Mar-07 21:08 
AnswerRe: How to convert existing C# Windows Application to C# Web Application.. Pin
Colin Angus Mackay19-Mar-07 1:19
Colin Angus Mackay19-Mar-07 1:19 
AnswerRe: How to convert existing C# Windows Application to C# Web Application.. Pin
Dave Kreskowiak19-Mar-07 1:43
mveDave Kreskowiak19-Mar-07 1:43 
QuestionUse Reflection to control winforms user permissions? Pin
nzmike18-Mar-07 20:21
nzmike18-Mar-07 20:21 
AnswerRe: Use Reflection to control winforms user permissions? Pin
Pete O'Hanlon19-Mar-07 0:27
mvePete O'Hanlon19-Mar-07 0:27 
GeneralRe: Use Reflection to control winforms user permissions? Pin
nzmike19-Mar-07 0:48
nzmike19-Mar-07 0:48 
QuestionGet data items from a dataGrid Pin
webHamlet15-Mar-07 19:39
webHamlet15-Mar-07 19:39 
AnswerRe: Get data items from a dataGrid Pin
Smart_Boy22-Mar-07 0:06
Smart_Boy22-Mar-07 0:06 
QuestionMenu coding [modified] Pin
PreppyProgrammer15-Mar-07 14:40
PreppyProgrammer15-Mar-07 14:40 
AnswerRe: Menu coding Pin
giddy_guitarist22-Mar-07 21:42
giddy_guitarist22-Mar-07 21:42 
Questionchange forms caption and border Pin
hamid_m15-Mar-07 0:59
hamid_m15-Mar-07 0:59 
Questiondynamic pictureBox creation Pin
sarah_malik12-Mar-07 6:49
sarah_malik12-Mar-07 6:49 
AnswerRe: dynamic pictureBox creation Pin
JUNEYT12-Mar-07 8:08
JUNEYT12-Mar-07 8:08 
GeneralRe: dynamic pictureBox creation Pin
sarah_malik12-Mar-07 8:14
sarah_malik12-Mar-07 8:14 
GeneralRe: dynamic pictureBox creation Pin
Dave Kreskowiak12-Mar-07 8:47
mveDave Kreskowiak12-Mar-07 8:47 

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.