Click here to Skip to main content
15,881,852 members
Home / Discussions / C#
   

C#

 
GeneralA simple Form OK button question Pin
DionChen10-Mar-03 11:36
DionChen10-Mar-03 11:36 
GeneralRe: A simple Form OK button question Pin
Gogou10-Mar-03 12:02
Gogou10-Mar-03 12:02 
GeneralRe: A simple Form OK button question Pin
DionChen10-Mar-03 16:48
DionChen10-Mar-03 16:48 
GeneralRe: A simple Form OK button question Pin
James T. Johnson10-Mar-03 18:07
James T. Johnson10-Mar-03 18:07 
GeneralRe: A simple Form OK button question Pin
Zek3vil11-Mar-03 7:01
Zek3vil11-Mar-03 7:01 
GeneralRe: A simple Form OK button question Pin
LongRange.Shooter11-Mar-03 7:33
LongRange.Shooter11-Mar-03 7:33 
QuestionBackground color on a TreeView checkbox? Pin
se99ts10-Mar-03 10:35
se99ts10-Mar-03 10:35 
QuestionDataSet bind to datagrid, how to flush or reject changes on Form.Closing ? Pin
Chris Richner10-Mar-03 10:25
Chris Richner10-Mar-03 10:25 
Hi,

i would like to let the user edit his data in a datagrid. The datagrid is bound to a dataset. If the user close the form i would like to know:
- are there changes?
- would he like to accept or reject changes?

C#
<p>But this do not work, cause it seems that the datagrid flush the data on dispose to the dataset, could that be ? cause HasChanges() returns false, all the time, even if i've got changes made to the Datagrid/dataset.

Is there a way to flush the changes made in datagrid to dataset, then check it, ask user and accept or reject changes ?
 

.:Greets from Jerry Maguire:.</p>

AnswerRe: DataSet bind to datagrid, how to flush or reject changes on Form.Closing ? Pin
leppie10-Mar-03 10:39
leppie10-Mar-03 10:39 
GeneralRe: DataSet bind to datagrid, how to flush or reject changes on Form.Closing ? Pin
Chris Richner10-Mar-03 22:48
Chris Richner10-Mar-03 22:48 
GeneralRe: DataSet bind to datagrid, how to flush or reject changes on Form.Closing ? Pin
ed2d11-Mar-03 21:25
ed2d11-Mar-03 21:25 
GeneralRe: DataSet bind to datagrid, how to flush or reject changes on Form.Closing ? Pin
Chris Richner12-Mar-03 5:08
Chris Richner12-Mar-03 5:08 
QuestionGet xpath of current Node? Pin
Bog10-Mar-03 10:00
Bog10-Mar-03 10:00 
AnswerRe: Get xpath of current Node? Pin
Christian Graus10-Mar-03 10:08
protectorChristian Graus10-Mar-03 10:08 
GeneralDrawing my own tab... Pin
Gogou10-Mar-03 9:35
Gogou10-Mar-03 9:35 
GeneralRe: Drawing my own tab... Pin
leppie10-Mar-03 9:50
leppie10-Mar-03 9:50 
GeneralRe: Drawing my own tab... Pin
Gogou10-Mar-03 10:12
Gogou10-Mar-03 10:12 
Question3 State Treeview checkboxes? Pin
vlusardi10-Mar-03 6:25
vlusardi10-Mar-03 6:25 
AnswerRe: 3 State Treeview checkboxes? Pin
Stephane Rodriguez.10-Mar-03 9:41
Stephane Rodriguez.10-Mar-03 9:41 
GeneralRecursive File Search Pin
Mark Sanders10-Mar-03 5:42
Mark Sanders10-Mar-03 5:42 
GeneralRe: Recursive File Search Pin
Mazdak10-Mar-03 7:57
Mazdak10-Mar-03 7:57 
GeneralRe: Recursive File Search Pin
leppie10-Mar-03 10:02
leppie10-Mar-03 10:02 
GeneralRe: Recursive File Search Pin
Mazdak11-Mar-03 6:59
Mazdak11-Mar-03 6:59 
GeneralRe: Recursive File Search Pin
Mark Sanders10-Mar-03 10:39
Mark Sanders10-Mar-03 10:39 
GeneralRe: Recursive File Search Pin
Mazdak11-Mar-03 7:30
Mazdak11-Mar-03 7:30 

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.