Click here to Skip to main content
15,886,035 members
Home / Discussions / C#
   

C#

 
AnswerRe: RichTextBox cannot handle huge amount of color-coded, varied font text? Pin
Aaron Eldreth11-Jun-04 8:32
Aaron Eldreth11-Jun-04 8:32 
GeneralRe: RichTextBox cannot handle huge amount of color-coded, varied font text? Pin
vista2711-Jun-04 9:16
vista2711-Jun-04 9:16 
GeneralRe: RichTextBox cannot handle huge amount of color-coded, varied font text? Pin
Aaron Eldreth11-Jun-04 12:18
Aaron Eldreth11-Jun-04 12:18 
GeneralUpdate to DB Failure Pin
MrJJKoolJ11-Jun-04 7:44
MrJJKoolJ11-Jun-04 7:44 
GeneralRe: Update to DB Failure Pin
Colin Angus Mackay11-Jun-04 8:10
Colin Angus Mackay11-Jun-04 8:10 
GeneralRe: Update to DB Failure Pin
MrJJKoolJ11-Jun-04 8:33
MrJJKoolJ11-Jun-04 8:33 
GeneralRe: Update to DB Failure Pin
Heath Stewart11-Jun-04 8:49
protectorHeath Stewart11-Jun-04 8:49 
GeneralRe: Update to DB Failure Pin
MrJJKoolJ11-Jun-04 9:11
MrJJKoolJ11-Jun-04 9:11 
HI Heath,

That's what I thought too. So in the method that I use to update db. I assigned the Insert command to DataAdapter along with the Update command to DataAdapter. Now it runs but when I execute the DataAdapter update method. I get a new row in database instead of actually updating same row. When I update the datarow with values how do I tell the diffram dataset to go to update mode as well?

Here I find the datarow I want to update in dataset:
<br />
nRow2 = dsDiff.Tables["MidnightReadings"].Select(sRecFind);<br />

It finds it in dataset with no problem

Then I update datarow:
<br />
nRow2[0]["Coal_Feeder_Tot"] = tbCoalFeederTot.Text;<br />
				nRow2[0]["Coal_Silo_Level_Prct"] = tbCoalSiloPrct.Text;<br />
				nRow2[0]["Coal_Barn_Inv_Prct"] = tbCoalBarnInvPrct.Text;<br />
				nRow2[0]["Limestone_Feed_Total"] = tbLimeFeedTot.Text;<br />

I checked the dataset and changes are there but here is the status of row:
<br />
<MidnightReadings diffgr:id="MidnightReadings2" msdata:rowOrder="1" diffgr:hasChanges="inserted"><br />
<MR_Date>2004-06-10T00:00:00.0000000-04:00</MR_Date><br />
<Coal_Feeder_Tot>8789</Coal_Feeder_Tot><br />
<Coal_Silo_Level_Prct>95.5</Coal_Silo_Level_Prct><br />
<Coal_Barn_Inv_Prct>75.8</Coal_Barn_Inv_Prct><br />
<Limestone_Feed_Total>0</Limestone_Feed_Total><br />
<LS_Silo_Level_Prct>0</LS_Silo_Level_Prct><br />
...<br />

This dataset already exists in db but keeps inserting new records.

What am I missing?

Thanks,

JJ
GeneralRe: Update to DB Failure Pin
Heath Stewart11-Jun-04 10:38
protectorHeath Stewart11-Jun-04 10:38 
GeneralRe: Update to DB Failure Pin
MrJJKoolJ11-Jun-04 11:26
MrJJKoolJ11-Jun-04 11:26 
GeneralRe: Update to DB Failure Pin
Heath Stewart11-Jun-04 11:52
protectorHeath Stewart11-Jun-04 11:52 
GeneralRe: Update to DB Failure Pin
MrJJKoolJ11-Jun-04 12:19
MrJJKoolJ11-Jun-04 12:19 
GeneralImport a comma delimited text file to a access database Pin
kornstyle11-Jun-04 7:31
kornstyle11-Jun-04 7:31 
GeneralRe: Import a comma delimited text file to a access database Pin
Heath Stewart11-Jun-04 8:30
protectorHeath Stewart11-Jun-04 8:30 
GeneralDataGridTextBoxColumn won't word wrap Pin
holt11-Jun-04 6:05
holt11-Jun-04 6:05 
GeneralRe: DataGridTextBoxColumn won't word wrap Pin
Heath Stewart11-Jun-04 6:27
protectorHeath Stewart11-Jun-04 6:27 
GeneralRe: DataGridTextBoxColumn won't word wrap Pin
holt11-Jun-04 7:14
holt11-Jun-04 7:14 
GeneralC++ pointer char* in dll function - string in C# Pin
SasaTod11-Jun-04 5:46
SasaTod11-Jun-04 5:46 
GeneralRe: C++ pointer char* in dll function - string in C# Pin
Heath Stewart11-Jun-04 6:22
protectorHeath Stewart11-Jun-04 6:22 
GeneralRe: C++ pointer char* in dll function - string in C# Pin
SasaTod11-Jun-04 9:29
SasaTod11-Jun-04 9:29 
GeneralRe: C++ pointer char* in dll function - string in C# Pin
Heath Stewart11-Jun-04 10:40
protectorHeath Stewart11-Jun-04 10:40 
GeneralRe: C++ pointer char* in dll function - string in C# Pin
SasaTod12-Jun-04 3:25
SasaTod12-Jun-04 3:25 
GeneralRe: C++ pointer char* in dll function - string in C# Pin
Heath Stewart12-Jun-04 4:31
protectorHeath Stewart12-Jun-04 4:31 
GeneralRe: Delete child in XML document while running an C# Application! Pin
Heath Stewart11-Jun-04 5:29
protectorHeath Stewart11-Jun-04 5:29 
GeneralRe: Delete child in XML document while running an C# Application! Pin
QzRz11-Jun-04 5:34
QzRz11-Jun-04 5:34 

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.