Click here to Skip to main content
15,894,106 members
Home / Discussions / C#
   

C#

 
GeneralRe: GDI+, resize image QUALITY! Pin
knoppis18-Mar-06 4:45
knoppis18-Mar-06 4:45 
QuestionRe: GDI+, resize image QUALITY! Pin
Nicholas Butler18-Mar-06 4:55
sitebuilderNicholas Butler18-Mar-06 4:55 
AnswerRe: GDI+, resize image QUALITY! Pin
knoppis18-Mar-06 5:21
knoppis18-Mar-06 5:21 
AnswerRe: GDI+, resize image QUALITY! Pin
Robert Rohde18-Mar-06 6:07
Robert Rohde18-Mar-06 6:07 
QuestionConnecting to DB2 in C# Pin
jjm40017-Mar-06 11:40
jjm40017-Mar-06 11:40 
AnswerRe: Connecting to DB2 in C# Pin
Mike Dimmick17-Mar-06 13:57
Mike Dimmick17-Mar-06 13:57 
QuestionRe: Connecting to DB2 in C# Pin
jjm40020-Mar-06 3:09
jjm40020-Mar-06 3:09 
QuestionDataview question Pin
Tom Wright17-Mar-06 10:36
Tom Wright17-Mar-06 10:36 
It seems that if I use dataview in my app, and a change is made to the dataset, and I call Update(ds). It does not update the datasource.

Here is my code in the form_load section:

<br />
			sqlDataAdapter1.Fill(dataSet11);<br />
<br />
			SqlCommandBuilder cb = new SqlCommandBuilder(sqlDataAdapter1);<br />
			<br />
			dt = dataSet11.Tables[0];<br />
			dataView1.Table = dt;<br />
<br />
			cm = (CurrencyManager)this.BindingContext[dataView1];<br />
<br />
			cm.CurrentChanged += new System.EventHandler(OnCurrentChanged);<br />
			lblRecord.Text = "Record " + (cm.Position + 1) + " of " + cm.Count;<br />


and the code in my save record section:
<br />
			if (dataSet11.HasChanges())<br />
			{<br />
				cm.EndCurrentEdit();<br />
				<br />
				sqlDataAdapter1.Update(dataSet11);<br />
			}<br />
<br />

I'm not sure why it does not update. If I remove the dataview then it updates the datasource. Suggestions?
Thanks


Tom Wright
tawright915@yahoo.com
AnswerRe: Dataview question Pin
Tom Larsen17-Mar-06 10:43
Tom Larsen17-Mar-06 10:43 
GeneralRe: Dataview question Pin
Tom Wright17-Mar-06 10:47
Tom Wright17-Mar-06 10:47 
GeneralRe: Dataview question Pin
Tom Wright17-Mar-06 11:04
Tom Wright17-Mar-06 11:04 
Questionplease help C#.NET 2003 Pin
ap_sa17-Mar-06 10:11
ap_sa17-Mar-06 10:11 
AnswerRe: please help C#.NET 2003 Pin
Christian Graus17-Mar-06 10:13
protectorChristian Graus17-Mar-06 10:13 
GeneralRe: please help C#.NET 2003 Pin
ap_sa17-Mar-06 10:51
ap_sa17-Mar-06 10:51 
Questionband object problem Pin
elraton17-Mar-06 10:10
elraton17-Mar-06 10:10 
AnswerRe: band object problem Pin
Ed.Poore17-Mar-06 12:53
Ed.Poore17-Mar-06 12:53 
GeneralRe: band object problem Pin
elraton18-Mar-06 17:41
elraton18-Mar-06 17:41 
QuestionSending WebService request from different port Pin
C#lueless17-Mar-06 9:34
C#lueless17-Mar-06 9:34 
QuestionNeed C# algorithm... Pin
KORCARI17-Mar-06 9:28
KORCARI17-Mar-06 9:28 
AnswerRe: Need C# algorithm... Pin
Christian Graus17-Mar-06 9:35
protectorChristian Graus17-Mar-06 9:35 
QuestionCrystal Reports.NET, Push method, Login failed Pin
Glenn E. Lanier II17-Mar-06 9:23
Glenn E. Lanier II17-Mar-06 9:23 
QuestionuxTheme. Where are the taskbar buttons? Pin
elraton17-Mar-06 7:33
elraton17-Mar-06 7:33 
AnswerRe: uxTheme. Where are the taskbar buttons? Pin
Thomas Stockwell18-Mar-06 13:53
professionalThomas Stockwell18-Mar-06 13:53 
QuestionC# mysql problem Pin
babamara17-Mar-06 7:07
babamara17-Mar-06 7:07 
Questiondynamic function call Pin
vatzcar17-Mar-06 5:50
vatzcar17-Mar-06 5:50 

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.