DataGrid Inversion
-
Hi: I have a case where in i need to display about 40 columns or so for a single record(row).So it could be nice if somebody could tell me what do i need to do to get the DataGrid Inverted so that all rows become columns and all columns become rows. Eg:- Name: Adam Jones City: Omaha County: Douglas State: Nebraska Country: U.S.A The above is the format i would like instead of having it in the usual way. Thanks in advance for the help.:). Regards Pradhip.S If a Building is Completed then why do they call it BUILDING ??
-
Hi: I have a case where in i need to display about 40 columns or so for a single record(row).So it could be nice if somebody could tell me what do i need to do to get the DataGrid Inverted so that all rows become columns and all columns become rows. Eg:- Name: Adam Jones City: Omaha County: Douglas State: Nebraska Country: U.S.A The above is the format i would like instead of having it in the usual way. Thanks in advance for the help.:). Regards Pradhip.S If a Building is Completed then why do they call it BUILDING ??
Use an asp:TemplateColumn tag. You can then make a column contain any number of fields provided by the Container, using DataBinder.Eval(Container.DataItem, "MyField") It's kinda complicated at first and you may need to do a lot of reading, but it gets easier once you've done it. Paul Pleasently caving in, I come undone - Queens of the Stone Age, No One Knows