473,395 Members | 1,720 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Print rows from DataGrid matching criteria

(new to programming/student)
I am using VS.Net 2003 (visual basic) on Windows XP with SQL Server
2005 Express.

I have one table in the SQL database that i brought into VS using
DataGrid. I am able to view, edit and delete rows just fine.
I would like to be able to pull/print rows where certian columns value
meets a certian criteria. The column values are just integers.
Example: Print all rows to rtxtPrintText where column 2 contains the
value 25.
I know this may sound like basic stuff to a lot of you. Like I said,
I'm just learning.
Thanks

Apr 18 '06 #1
2 1158
littleccguy wrote:
(new to programming/student)
I am using VS.Net 2003 (visual basic) on Windows XP with SQL Server
2005 Express.

I have one table in the SQL database that i brought into VS using
DataGrid. I am able to view, edit and delete rows just fine.
I would like to be able to pull/print rows where certian columns value
meets a certian criteria. The column values are just integers.
Example: Print all rows to rtxtPrintText where column 2 contains the
value 25.
I know this may sound like basic stuff to a lot of you. Like I said,
I'm just learning.
Thanks


You can do this with Crystal Reports but that depends on what version of
VS.Net you have.

Chris
Apr 18 '06 #2
I have Crystal, so I was able to do that - thanks.

What if I want to work with the results more in VB.Net before i print.
Say i want to pull each record and then do a second criteria search
within that, or maybe put each record into an array(if that is even
possible.) I'm just trying to practice and understand what I might and
might not be able to do.

Thanks for the quick response Chris

Apr 18 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Matthew Kramer | last post by:
I have a main table of rows, and I created a query to put the customer ID code and the product ID code for each row. But in the query results I have a substantially less number of rows than in my...
1
by: MrNobody | last post by:
what I'd like to have is a simple feature to search within a column in a DataGrid and have that the first matching row selected, then the user can choose to search again where it will select the...
3
by: Chris | last post by:
Is it possible to hide specific rows in a listview? I currently have a listview in details view and the user can select multiple views which shows the listview items matching the selected...
0
by: lucindaa | last post by:
Hi EveryBody, i have a problem in setting the column type of datagrid dynamically in C# .Net Windows App. i am generating the grid automatically by assigning datasource of a datatable the...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.