Click here to Skip to main content
16,005,467 members
Home / Discussions / C#
   

C#

 
GeneralRe: Drawing column headers Pin
Heath Stewart5-Mar-04 8:27
protectorHeath Stewart5-Mar-04 8:27 
GeneralRe: Drawing column headers Pin
Amberite005-Mar-04 9:02
Amberite005-Mar-04 9:02 
GeneralRe: Drawing column headers Pin
Heath Stewart5-Mar-04 9:09
protectorHeath Stewart5-Mar-04 9:09 
GeneralRe: Drawing column headers Pin
Amberite005-Mar-04 9:13
Amberite005-Mar-04 9:13 
GeneralRe: Drawing column headers Pin
Heath Stewart5-Mar-04 9:37
protectorHeath Stewart5-Mar-04 9:37 
GeneralRe: Drawing column headers Pin
Amberite005-Mar-04 9:41
Amberite005-Mar-04 9:41 
GeneralInstall remote Window Service Pin
hxxbin5-Mar-04 4:43
hxxbin5-Mar-04 4:43 
GeneralCounting Items post RowFilter in a DataView Pin
MrEyes5-Mar-04 3:33
MrEyes5-Mar-04 3:33 
I have a DataTable (data) that contains 3 rows :
value1 value2
textA  0
textB  1
textC  1      


I am placing this DataTable into a DataView and then filtering to get the rows where 'value2' does not equal zero :

DataView dvFiltered = new DataView(this.data, "totalUsed <> 0", "value2", DataViewRowState.CurrentRows);
int filteredCount = dvFiltered.Count;
string summary = string.Format("{0} Item(s)", filteredCount.ToString());


For some reason the count, sometimes returns the correct value but most of the time it doesnt, and I cant see a reason why. I have be stepping through the code to make sure the datatable contains the values it should and all that seems fine, as an example the following is taken from my VS watch list :

this.data.Rows[0]["value2"] - "0"
this.data.Rows[1]["value2"] - "1"
this.data.Rows[2]["value2"] - "2"
dvFiltered.Count - 1


post.mode = signature;
SELECT everything FROM everywhere WHERE something = something_else;
> 1 Row Returned
> 42
QuestionHow can I pull multiple icons from a single embedded bitmap? Pin
AppMaker885-Mar-04 1:20
AppMaker885-Mar-04 1:20 
AnswerRe: How can I pull multiple icons from a single embedded bitmap? Pin
Heath Stewart5-Mar-04 6:14
protectorHeath Stewart5-Mar-04 6:14 
GeneralGraphics, Bitmaps, and a Process that doesn't close Pin
Rendall4-Mar-04 23:35
Rendall4-Mar-04 23:35 
GeneralRe: Graphics, Bitmaps, and a Process that doesn't close Pin
Heath Stewart5-Mar-04 6:07
protectorHeath Stewart5-Mar-04 6:07 
GeneralRe: Graphics, Bitmaps, and a Process that doesn't close Pin
Rendall12-Mar-04 20:01
Rendall12-Mar-04 20:01 
GeneralRe: Graphics, Bitmaps, and a Process that doesn't close Pin
Rendall13-Mar-04 0:11
Rendall13-Mar-04 0:11 
GeneralMarshalling Problem Pin
nvenkat4-Mar-04 23:02
nvenkat4-Mar-04 23:02 
GeneralRe: Marshalling Problem Pin
Roman Rodov4-Mar-04 23:51
Roman Rodov4-Mar-04 23:51 
GeneralRe: Marshalling Problem Pin
nvenkat5-Mar-04 19:19
nvenkat5-Mar-04 19:19 
Generalchecklistbox problem Pin
ASGill4-Mar-04 21:34
ASGill4-Mar-04 21:34 
GeneralRe: checklistbox problem Pin
Mazdak4-Mar-04 21:40
Mazdak4-Mar-04 21:40 
GeneralRe: checklistbox problem Pin
ASGill4-Mar-04 22:09
ASGill4-Mar-04 22:09 
GeneralRe: checklistbox problem Pin
Mazdak4-Mar-04 22:25
Mazdak4-Mar-04 22:25 
GeneralRe: checklistbox problem Pin
ASGill5-Mar-04 0:53
ASGill5-Mar-04 0:53 
GeneralRe: checklistbox problem Pin
MasudM5-Mar-04 1:50
MasudM5-Mar-04 1:50 
GeneralRe: checklistbox problem Pin
Mazdak5-Mar-04 4:51
Mazdak5-Mar-04 4:51 
GeneralRe: checklistbox problem Pin
ASGill5-Mar-04 7:04
ASGill5-Mar-04 7:04 

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.