Windows Develop Bookmark and Share   
 index > Windows Forms Data Controls and Databinding > Datagridview orientation
 

Datagridview orientation

Hi there, I have a question about the datagridview.

I use datagrid view often in my application and when I load multiple rows from the DB into the datagridview it works as I would like it. Each row contains a record and each column a datafield.

I also have forms where I have one (1) row in the datagrid view. In that case I would like to change the orientation. So each row contains a datafield and the column contains the record.

Is this easy possible with a property/feature/etc?

Thanks

Charel  Saturday, September 08, 2007 10:26 AM

Hi Charel,

I had the same request from a user once. What your thinking of isn't possible in the datagridview (not without abit of poking about)however the solution, or the one I came up with, was to use the property grid. This is the control that Visual Studio uses to let you set properties on controls and things. Maybe this will do the job you need.

Derek Smyth  Saturday, September 08, 2007 12:27 PM

Hi Charel,

I had the same request from a user once. What your thinking of isn't possible in the datagridview (not without abit of poking about)however the solution, or the one I came up with, was to use the property grid. This is the control that Visual Studio uses to let you set properties on controls and things. Maybe this will do the job you need.

Derek Smyth  Saturday, September 08, 2007 12:27 PM
You could always create a pivot table

http://www.onteorasoftware.net/PivotTable.aspx
Ken Tucker  Saturday, September 08, 2007 2:02 PM

You can use google to search for other answers

Custom Search

More Threads

• Background color
• Change BackColor of DataGridCells, throw "values" testing
• cmobobox databinding problem
• DataGrids
• HELP - Ultragrid ComboBox columns
• Binding nullable integer to textbox from designer
• Datagrid results not emptying
• Override the Format behavior of a column in a DataGridView?
• Change the background color on individual cells within the .Net 2003 datagrid
• Bound Data Grid View - Inhibit Edit of PK Field.