I'm using VB.net to create a Crystal Report and using DataGridView to show the data before print it out by Crystal Report. But now I want to:
- Add another column into the DataGridView named: "Print/Not Print"
- Using the value we add permanently into the "Print/Not Print" column as a variable to Print or to Not Print the row which contain it. In this case I prefer "1 = Print" and "0 = Not Print".
- After we change the DataGridView, the databsae in my SQL server still remains the same.
Please help me with this problem!
Eternal Newbie
30
Newbie Poster
Recommended Answers
Jump to Postyou need to add one more column to table Print as boolean and When user selects or unselects the data from Gridview u need to update those columns in DB and Get the data where Print=1 in crystal report.
Jump to PostIn SQL server you first add column of type boolean.
U wrote code for fetching the vaules from database and bind to gird?
All 7 Replies
Pgmer
50
Master Poster
Featured Poster
Eternal Newbie
30
Newbie Poster
Pgmer
50
Master Poster
Featured Poster
Eternal Newbie
30
Newbie Poster
Pgmer
50
Master Poster
Featured Poster
Eternal Newbie
30
Newbie Poster
adam_k
239
Master 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.