Not Repeated Rows
-
Hi, I have small project that retrieve Data from Database and fill Datagrid On Page Load. I add Databound Columns for each Columns in the database, and set The AutoGenerateColumns=False, So My Data will be Displayed lik this StudentName CourseName John asp.net Mary mcse Komar MCSD Komar A+ Komar 3D Studio ... I need to make Komar appears just one time, so the result Should be like this in the DataGrid StudentName CourseName Komar MCSD A+ 3D Studio How Can I do This, some help Please.
-
Hi, I have small project that retrieve Data from Database and fill Datagrid On Page Load. I add Databound Columns for each Columns in the database, and set The AutoGenerateColumns=False, So My Data will be Displayed lik this StudentName CourseName John asp.net Mary mcse Komar MCSD Komar A+ Komar 3D Studio ... I need to make Komar appears just one time, so the result Should be like this in the DataGrid StudentName CourseName Komar MCSD A+ 3D Studio How Can I do This, some help Please.
-
Hi, I have small project that retrieve Data from Database and fill Datagrid On Page Load. I add Databound Columns for each Columns in the database, and set The AutoGenerateColumns=False, So My Data will be Displayed lik this StudentName CourseName John asp.net Mary mcse Komar MCSD Komar A+ Komar 3D Studio ... I need to make Komar appears just one time, so the result Should be like this in the DataGrid StudentName CourseName Komar MCSD A+ 3D Studio How Can I do This, some help Please.
A data grid is not the right choice for this. Use nested repeaters and build two collections, one of names, and one of courses for that name. Or you could just handle the data bound event for a row, and erase the name if it's the same as the last name displayed.
Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )