i have a number of values in my database and i want to list only those values which is greater than zero
mohammed_22
0
Light Poster
Recommended Answers
Jump to PostHi
What have you tried so far?
Have you considered using an SQL Statement with a WHERE clause:
SELECT * FROM YourTable WHERE YourColumn > 0
?HTH
Jump to PostHi
Sorry, I did reply before you posted your code so I have removed that statement.
Looking at the code that you have posted you are using a DataReader to bind to the DataGridView. This is not correct. A DataReader is used as a means to read data in a …
All 6 Replies
djjeavons
113
partis vestri scientia
mohammed_22
0
Light Poster
mohammed_22
0
Light Poster
mohammed_22
0
Light Poster
djjeavons
113
partis vestri scientia
ddanbe
commented:
Great help.
+15
mohammed_22
0
Light Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.