Help On Grid View Binding

Posted by Vijayar under C# on 8/25/2011 | Points: 10 | Views : 835 | Status : [Member] | Replies : 1
I have 2 tables with names template and category.
Template ->Templateid,Template Name
Category->Category Id,Category Name
Now i want to bind data to grid view by using combination of 2 tables i.e. Under category name i need to dispaly all types of templates present
Ex: Category Name New Year Wishes
Template Happy New Year
Wish U Happy New Year
In Grid
New Year Wishes
1.>> Happy New Year
2.>> Wish U Happy New Year

Next Category Name

i dont have any common field .How to do this.Please help me



Posted by: Jpchoudhari on: 8/26/2011 [Member] Starter | Points: 25


I think you can not do this if you don't have any relationship between your two tables.
You have to specify which template is being used for which category.

Kind Regards,

Vijayar, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response