Hi,
I have a table with some duplicate records id but all columns have diffrent values. I wann to bind this table in gridview. All duplicate same id columns bind in one row of a gridview.
Plaese tell me
Table bind in gridview
4 Answers
Know the answer? Post it. Somebody with the same question will find it here.


Munesh SharmaRank #174 · 13.9K reputationPosted Mar 19, 2014, 10:16 PM EDT
"select ID, Row _number() over (PARTITION BY ID order by ID) As ID from tablename"
Nitin BhardwajRank #139 · 16.1K reputationPosted Mar 19, 2014, 10:37 PM EDT
if yes then how?
Munesh SharmaRank #174 · 13.9K reputationPosted Mar 19, 2014, 10:49 PM EDT
http://www.mssqltips.com/sqlservertip/3148/sql-server-reporting-services-xml-data-source-and-data-set/
Nitin BhardwajRank #139 · 16.1K reputationPosted Mar 19, 2014, 11:04 PM EDT