Link to home
Start Free TrialLog in
Avatar of tmccrank
tmccrank

asked on

Set DataGrid header text to show vertically

I have an ASP.NET 1.1 application that will have a large-ish number of users completing a series of educational modules.  At the end of each module the user completes a multiple choice test.
I'm trying to figure out what the best way is to display which users completed which module tests.  I thought that a DataGrid would work relatively well by having a list of users down the left side of the DG, and the names of the modules across the top.  If User "Smith" completed module test "VAP", then the DataGrid cell at that "coordinate" would be filled with a solid colour.  Any module tests not completed would remain empty.

My question (after all of that), is how can orient the names of the modules across the top of the DG (i.e. the headers) vertically (or at an angle), in order to use space as effeciently as possible?

Thanks
Avatar of ibost
ibost

I would create a "false" header row... i.e. a table above the datagrid with columns set to the same width as the datagrid's columns.  Then in the datagrid set ShowHeader=false

I could be wrong but I don't think a datagrid will support rotating the text 90 degrees.
ASKER CERTIFIED SOLUTION
Avatar of ibost
ibost

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of tmccrank

ASKER

Interesting, thanks ibost.  I won't be able to try it out for a little while, but I'll get back to you asap.
Sorry for leaving this so long ibost, I was distracted by a couple of things that took me away from this project.  Unfortunately, this is still the case so I haven't had a chance to test your code.  Nevertheless, I appreciate your input, I hope to give it a shot fairly soon.