How do I group columns in a DataGrid?
I mean Headers are grouped. Say I
have a column Street, City, Country.
Then these columns are under a column named Address. & I have
another group of column named Student and under that I need a column
Roll no,Class,Section. Hope u can understand. Plz mail me I am in hurry.

Rajendra TripathyPosted Sep 24, 2010, 8:13 AM
Thanks for the reply. But the thing is I dont have to use DB its not part of project.. I am binding the DATA to Grid as below :
Grid1.DataSource = itemList; (Where Itemlist is a List of String)
Hope you are clear now..
So plz give me some idea on this or if u have any Sample application then do let me know.
Posted Sep 24, 2010, 5:54 AM
You would have attached a datatable to the datgrid to fill data..and the datatable is been filled from the database....
instead fill the datable by using a select query in which combine street,city,country as one column and bind that column to the particular column in the datagrid..
Example
select Street+City+Country as Address,Roll no+Class+Section as Student from tablename
and bind Address to column in the datagrid respectively...
Hope i made myself clear
With Regards
P.Krishna Prasad
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
If someway my answer helped u ..don't forget to mark it as correct answer.......