PC Review


Reply
Thread Tools Rate Thread

DataGridView - how to swap rows with columns.

 
 
A n g l e r
Guest
Posts: n/a
 
      26th Jun 2008
Hi there.

I'm just wondering how I could reassure that rows (of DataGridView) are
of a certain data type rather than columns? I mean consider the following:

Col1 (bool) Col2(int32)
Row1 T 34
Row2 T 34

Now, I would rather have:

Col1 Col2
Row1 (bool) T T
Row2 (int32) 34 34

Hope this comes across enough clear

Cheers.
 
Reply With Quote
 
 
 
 
Marc Gravell
Guest
Posts: n/a
 
      26th Jun 2008
I'm pretty sure you can't. PropertyGrid is based IList/IListSource for
items (rows), using GetProperties() from either TypeDescriptor or
ITypedList for properties (columns). It is expected that the metadata
is the same for every row - it is queried for the entire list, not on
a per-row basis.

You could *perhaps* stick to text formatting (not checkboxes etc) and
do a *lot* of work in the format/validate steps to shim it - I
wouldn't be in a hurry to try this, though.

There is no doubt an alternative grid that would better suit your
needs, but I can't name any...

Marc
 
Reply With Quote
 
A n g l e r
Guest
Posts: n/a
 
      26th Jun 2008
> You could *perhaps* stick to text formatting (not checkboxes etc) and
> do a *lot* of work in the format/validate steps to shim it - I
> wouldn't be in a hurry to try this, though.
>
> There is no doubt an alternative grid that would better suit your
> needs, but I can't name any...


Yep, I'd appreciate if anyone could come up with some recommendation of
an alternative grid ... Don't mind if it comes as a whole package of UI
components.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
swap rows and columns =?Utf-8?B?cnVkeWg=?= Microsoft Excel Misc 3 15th Dec 2005 01:23 AM
How to swap rows and columns? no@spam.com Microsoft Excel Misc 5 21st Sep 2005 08:07 AM
Re: Excel should allow you to swap rows. Also swap columns Gord Dibben Microsoft Excel Misc 1 18th Sep 2004 03:40 PM
Excel should allow you to swap rows. Also swap columns =?Utf-8?B?S2lyayBLb3J2ZXI=?= Microsoft Excel Misc 0 17th Sep 2004 06:03 PM
Swap rows and columns Raoul Microsoft Excel Worksheet Functions 2 2nd Dec 2003 04:08 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:49 AM.