Click here to Skip to main content
15,893,487 members
Home / Discussions / C#
   

C#

 
GeneralRe: Reading from Excel (quick question) Pin
turbochimp29-Sep-05 10:58
turbochimp29-Sep-05 10:58 
GeneralRe: Reading from Excel (quick question) Pin
BECK729-Sep-05 11:20
BECK729-Sep-05 11:20 
GeneralRe: Reading from Excel (quick question) Pin
turbochimp29-Sep-05 12:12
turbochimp29-Sep-05 12:12 
GeneralRe: Reading from Excel (quick question) Pin
BECK729-Sep-05 12:16
BECK729-Sep-05 12:16 
QuestionRowFilter property Pin
zaboboa29-Sep-05 5:52
zaboboa29-Sep-05 5:52 
AnswerRe: RowFilter property Pin
Wjousts29-Sep-05 6:15
Wjousts29-Sep-05 6:15 
GeneralRe: RowFilter property Pin
zaboboa29-Sep-05 9:03
zaboboa29-Sep-05 9:03 
GeneralRe: RowFilter property Pin
Wjousts29-Sep-05 9:17
Wjousts29-Sep-05 9:17 
You are, in fact, looping through the rows in the table, not the rows in the dataview. DataView.Table is a reference to the original, unfiltered table. You must loop through the DataRowView objects in the DataView itself as I showed you in my previous post.
Try this:

<br />
for (int i = 0; i < this.dataview.Table.Columns.Count; i++) {<br />
foreach (DataRowView val in this.dataview) {<br />
if (val["IndentLevel"].ToString() == level && val["VersionID"].ToString() == row["VersionID"].ToString()) {<br />
total = total + Convert.ToDecimal(val[i]);<br />
} <br />
}<br />
row[i] = total;<br />
total = 0;<br />
} // End of FOR loop<br />

GeneralRe: RowFilter property Pin
zaboboa29-Sep-05 9:32
zaboboa29-Sep-05 9:32 
QuestionBinary File Pin
Member 202517629-Sep-05 5:51
Member 202517629-Sep-05 5:51 
AnswerRe: Binary File Pin
leppie29-Sep-05 5:54
leppie29-Sep-05 5:54 
AnswerRe: Binary File Pin
Guffa29-Sep-05 7:01
Guffa29-Sep-05 7:01 
AnswerRe: Binary File Pin
29-Sep-05 11:01
suss29-Sep-05 11:01 
QuestionVector Graphics Pin
pmasknguyen29-Sep-05 5:48
pmasknguyen29-Sep-05 5:48 
AnswerRe: Vector Graphics Pin
leppie29-Sep-05 5:56
leppie29-Sep-05 5:56 
GeneralRe: Vector Graphics Pin
pmasknguyen29-Sep-05 13:48
pmasknguyen29-Sep-05 13:48 
Question(Xml) deserializing objects from dynamic assemblies. Pin
Rein_Petersen29-Sep-05 5:46
Rein_Petersen29-Sep-05 5:46 
AnswerRe: (Xml) deserializing objects from dynamic assemblies. Pin
leppie29-Sep-05 5:52
leppie29-Sep-05 5:52 
GeneralRe: (Xml) deserializing objects from dynamic assemblies. Pin
Rein_Petersen29-Sep-05 6:49
Rein_Petersen29-Sep-05 6:49 
GeneralRe: (Xml) deserializing objects from dynamic assemblies. Pin
Rein_Petersen29-Sep-05 7:54
Rein_Petersen29-Sep-05 7:54 
QuestionSecurityException Question Pin
PULLAH29-Sep-05 5:28
PULLAH29-Sep-05 5:28 
AnswerRe: SecurityException Question Pin
leppie29-Sep-05 5:40
leppie29-Sep-05 5:40 
QuestionSecurityException Question Pin
PULLAH29-Sep-05 5:28
PULLAH29-Sep-05 5:28 
Questionis there a reverse of @&quot;abc&quot;? Pin
Ariadne29-Sep-05 5:27
Ariadne29-Sep-05 5:27 
AnswerRe: is there a reverse of @&quot;abc&quot;? Pin
leppie29-Sep-05 5:36
leppie29-Sep-05 5:36 

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.