Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Jun 25, 2012 07:42 AM by Qin Dian Tang - MSFT
Jun 20, 2012 03:09 PM|LINK
I want to build a gridview from a view join two tables Customer and CustomerAddress table..
BUt the format in which my end user wants is the problem i am facing
The gridview should look like this
CustomerName ShopNo PurchaseItems Amount ----------------
xxxxx 4 5 10000.00
CustomerStrett CustomerApt City State --------------- fields from Customeraddress table
xxxxx 59 Houston Texas
yyyyy 5 7 11000.00
The address fields should always come below the Customer fields....Can i format my gridview to look like this or use any other control and in the end this would make my job simple (i guess) to export to excel in same format...Thank you in advance for all
you help and suggestions
Jun 25, 2012 07:42 AM|LINK
You can place a <table> structure in the ItemTemplate of GridView with four <tr>. The first row for displaying header column text, second for binding fields from customer, ....
Set ShowHeader property to false in GridView.