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
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, ....
akpaga22
Member
184 Points
253 Posts
designing a gridview or any other control programmtically?
Jun 20, 2012 03:09 PM|LINK
Hi friends,
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
CustomerName ShopNo PurchaseItems Amount ----------------
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
Qin Dian Tan...
All-Star
113532 Points
12480 Posts
Microsoft
Re: designing a gridview or any other control programmtically?
Jun 25, 2012 07:42 AM|LINK
Hi,
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.
Thanks,
If you have any feedback about my replies, please contactmsdnmg@microsoft.com.
Microsoft One Code Framework