Click here to Skip to main content
16,004,919 members
Home / Discussions / C#
   

C#

 
GeneralRe: Code Critique Requested Pin
Daniel Turini23-Jun-04 8:38
Daniel Turini23-Jun-04 8:38 
GeneralRe: Code Critique Requested Pin
Heath Stewart23-Jun-04 8:50
protectorHeath Stewart23-Jun-04 8:50 
GeneralRe: Code Critique Requested Pin
Daniel Turini23-Jun-04 9:00
Daniel Turini23-Jun-04 9:00 
GeneralRe: Code Critique Requested Pin
Heath Stewart23-Jun-04 9:06
protectorHeath Stewart23-Jun-04 9:06 
GeneralRe: Code Critique Requested Pin
mealnumberone23-Jun-04 9:11
mealnumberone23-Jun-04 9:11 
GeneralRe: Code Critique Requested Pin
Daniel Turini23-Jun-04 10:25
Daniel Turini23-Jun-04 10:25 
GeneralRe: Code Critique Requested Pin
Steven Campbell23-Jun-04 9:42
Steven Campbell23-Jun-04 9:42 
GeneralDataGrid and end edit Pin
cje23-Jun-04 6:44
cje23-Jun-04 6:44 
I have a simple windows form with a DataGrid bound to a dataset from a database. When the form closes (event 'Closing') I want to flush all changes made in the grid to the database. Everything is fine except the current cell...if I have not left the cell, the data is not updated.
So far I have tried
<br />
private void OnClosing(object sender, System.ComponentModel.CancelEventArgs e)<br />
{<br />
System.Windows.Forms.DataGridCell cell = this.dataGrid1.CurrentCell;<br />
DataGridColumnStyle dgc = this.dataGrid1.TableStyles[0].GridColumnStyles[cell.ColumnNumber];<br />
bool good = this.dataGrid1.EndEdit(dgc, this.dataGrid1.CurrentRowIndex, false );<br />
<br />
this.oleDbDataAdapter1.Update( this.dataSetFeature1 );<br />
}<br />

without luck. Does any one know how to get the current state of the cell into the dataset during 'Closing'?

thanks in advance
cje
GeneralRe: DataGrid and end edit Pin
Heath Stewart23-Jun-04 8:40
protectorHeath Stewart23-Jun-04 8:40 
GeneralRe: DataGrid and end edit Pin
cje23-Jun-04 8:49
cje23-Jun-04 8:49 
GeneralRe: DataGrid and end edit Pin
Heath Stewart23-Jun-04 9:00
protectorHeath Stewart23-Jun-04 9:00 
GeneralRe: DataGrid and end edit Pin
cje23-Jun-04 9:04
cje23-Jun-04 9:04 
QuestionHow-to? Connect to remote pc over LAN connection ? Pin
Adel83k23-Jun-04 5:57
Adel83k23-Jun-04 5:57 
AnswerRe: How-to? Connect to remote pc over LAN connection ? Pin
eggie523-Jun-04 6:44
eggie523-Jun-04 6:44 
GeneralRe: How-to? Connect to remote pc over LAN connection ? Pin
Adel83k24-Jun-04 1:09
Adel83k24-Jun-04 1:09 
AnswerRe: How-to? Connect to remote pc over LAN connection ? Pin
Steven Campbell23-Jun-04 7:19
Steven Campbell23-Jun-04 7:19 
AnswerRe: How-to? Connect to remote pc over LAN connection ? Pin
sides_dale23-Jun-04 15:44
sides_dale23-Jun-04 15:44 
GeneralSuggestion Pin
vcorn23-Jun-04 5:23
vcorn23-Jun-04 5:23 
GeneralRe: Suggestion Pin
Werdna23-Jun-04 6:59
Werdna23-Jun-04 6:59 
QuestionHow to set row height of listview ? Pin
Old Gun23-Jun-04 5:16
Old Gun23-Jun-04 5:16 
AnswerRe: How to set row height of listview ? Pin
Werdna23-Jun-04 7:06
Werdna23-Jun-04 7:06 
GeneralReport Services nice printing Pin
Wally Wally23-Jun-04 2:48
Wally Wally23-Jun-04 2:48 
GeneralRe: Report Services nice printing Pin
Heath Stewart23-Jun-04 5:17
protectorHeath Stewart23-Jun-04 5:17 
QuestionCan you Draw Shapes on Forms/PictureBoxes? Pin
ZeldaFreak23-Jun-04 1:54
ZeldaFreak23-Jun-04 1:54 
AnswerRe: Can you Draw Shapes on Forms/PictureBoxes? Pin
Daniel M. Edwards23-Jun-04 3:12
Daniel M. Edwards23-Jun-04 3:12 

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.