I am here trying to find if GridView has some solution to my problem.
I have a table 'Contacts' with has fields like
PresentAddress|CityID|StateID|CountryID|ZoneID
PermanentAddress|CityID|StateID|CountryID|ZoneID
DepartmentID
DesignationID
DivisionID.
Now all above fields are foreign keys in contacts table. Currently i am retrieving data using Joins and displaying in Gridview.
One of my problem is that CityID|StateID|CountryID|ZoneID tables are used twice in joins with different alias to fill up their associated values for PresentAddress & PermanentAddress fields. so overall 11 to 12 tables in a join. I am sure performance will shout as no of records will increase.
I am thinking if i retrieve from database those Individual master tables (City,State,Country,Zone etc and Contact table) into DataSet (without joins) then CAN GridView help me to retrieve associate data and display. which mean whereever it finds a column CityID, it brings CityName from CityMaster table and display in place of CityID column.
Regards
I have a table 'Contacts' with has fields like
PresentAddress|CityID|StateID|CountryID|ZoneID
PermanentAddress|CityID|StateID|CountryID|ZoneID
DepartmentID
DesignationID
DivisionID.
Now all above fields are foreign keys in contacts table. Currently i am retrieving data using Joins and displaying in Gridview.
One of my problem is that CityID|StateID|CountryID|ZoneID tables are used twice in joins with different alias to fill up their associated values for PresentAddress & PermanentAddress fields. so overall 11 to 12 tables in a join. I am sure performance will shout as no of records will increase.
I am thinking if i retrieve from database those Individual master tables (City,State,Country,Zone etc and Contact table) into DataSet (without joins) then CAN GridView help me to retrieve associate data and display. which mean whereever it finds a column CityID, it brings CityName from CityMaster table and display in place of CityID column.
Regards