Click here to Skip to main content
15,885,278 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
I have a dataset in datagridview, and one row of this dataset includes a date data.
For example,
-----------------------
Date | Etc.
-----------------------
6/24/2014 | a
-----------------------
6/24/2014 | a
-----------------------
6/25/2014 | b
-----------------------
6/26/2014 | c
-----------------------
6/26/2014 | c
-----------------------

I'd like to merge cells having same date. What I need to do is...
-----------------------
Date | Etc.
-----------------------
6/24/2014 | a
-----------------------
6/25/2014 | b
-----------------------
6/26/2014 | c
-----------------------
Posted
Comments
Sergey Alexandrovich Kryukov 4-Jun-15 22:03pm    
Why? Is it duplicate data? Isn't it better to prevent duplication in first place, instead of "merging"?
—SA
Milfje 5-Jun-15 5:27am    
How do you retrieve the data? Maybe you can edit your query to GROUP BY.
TarikHuber 5-Jun-15 11:03am    
Are you maby using the DataGridView to just present Data to users? In that case a Report would be bether than a DataGridView. Othervise as @Milfje mentionet update your SQL Statement to use GROUP BY.

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900