Click here to Skip to main content
15,893,668 members
Articles / Programming Languages / Visual Basic

How to Show 2 Table Data to DataGridView. 1 Table Data need Header Text

Rate me:
Please Sign up or sign in to vote.
0.00/5 (No votes)
18 Jan 2013CPOL 3K  
Hi All Please Help Me... I have 3 Table View to DataGridView This Table Data Want DisplayTable1 (StudentDetails) Regno Name Class SectionA100 Raja I AA200 Ravi I AThis Table Filed Want Display To DataGridView ColumnTable2(Fees Structure) Class FeeType Total...

Alternatives

Members may post updates or alternatives to this current article in order to show different approaches or add new features.

Please Sign up or sign in to vote.
17 Jan 2013graciax8
try this. just modify the query and join the needed tables.SELECT Regno, Sname, Class, Section,SUM(CASE WHEN FeeType = 'Jan' THEN Amount ELSE 0 END) AS Jan,SUM(CASE WHEN FeeType = 'Feb' THEN Amount ELSE 0 END) AS Feb,SUM(CASE WHEN FeeType = 'Mar' THEN Amount ELSE 0 END) AS...

License

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


Written By
India India
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions