Click here to Skip to main content
15,889,595 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I want to print the data grid in the following format
first username
Next Address
Next City
Next PinCode


Eg :
JohnSmit           Jack Sparrow
25,NewStreet     50,Washington st
new york           Washington
75896               89525



these are my datagrid columns columns

UserName,Address,PinCode

I am using Linq to sqlservercE, as my datasource, and DevExpress Product xtra grid as my datagrid

One more thing, this is the final stage in my project.
I want to accomplish this printing format no matter what happens
I believe in you guys

Thanks in Advance
Posted
Updated 27-Mar-11 5:44am
v4
Comments
Sandeep Mewara 27-Mar-11 2:13am    
We are not clear on what is your issue and where are you stuck?

This just looks like a problem statmement. But nothing what you tried or trying or stuck.
narutouzamaki 27-Mar-11 3:09am    
i am doing a project for magazine company in my local area. they want to send their magazine by post
i had stored the user details in the sql server compact edition .for inserting updating deleting i am using linq
now i want to print the username,address,city , pincode columns
"sory for my question and and english aman"
Sandeep Mewara 27-Mar-11 3:31am    
I am still sure, what are you looking for? Are you looking for a report? Designing a page to print? What? Further have you tried anything?
narutouzamaki 27-Mar-11 6:25am    
first of all thanks for your reply ya i want to print 2500 user records as a report.
i tried to get the selected row value in an array but i'm sure its not working
Dalek Dave 27-Mar-11 11:45am    
Edited for Grammar and Readability.

This is where using a reporting solution comes in, such as Crystal Reports.
 
Share this answer
 
Comments
narutouzamaki 28-Mar-11 1:35am    
i dont know how to use crystal report ok ill try it. thanks man
Making it print no matter what happens is not a good practice.
It leads to bad programming and kludgy code.

Better to have elegant code with bugs than a bad code that works.


And don't try to reinvent the wheel, as Dave Kreskowiak says, use existing technology.
 
Share this answer
 
you will get some idea from <b>Repeater </b>or ListView Controls where you can group this type of data into one Grid ,
once you Bind the data in repeater or Listview you can use javasript to print specific page.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900