Custom header row in .NET datagrid?
April 17, 2008 1:39 PM Subscribe
How do I insert a row of identical drop-down lists into the top of my .NET datagrid?
posted by TimeTravelSpeed to computers & internet (5 answers total) 2 users marked this as a favorite
I have a DataGrid whose source is an excel spreadsheet. My GUI needs to allow a user to select an option from a drop-down above each column. I'd like this row to be a part of the grid so that everything lines up all pretty-like.
The best option I've found is to manually create all the rows and columns and bind that to the grid. Another option was to use a repeater of datalists instead. Is there a simpler or better way? (I'm using C#)