|
-
Nov 14th, 2010, 08:22 PM
#1
Thread Starter
Lively Member
Any controls can do this??
[IMG] [/IMG]
Hi,Is any controls can do it this way? I am using VS2008, vb.net.
traditionally the grid column and row is display in vertically, how if i want is display in horizontally??
The field must be editable, not read only.
Appreciated if any advice..
-
Nov 14th, 2010, 09:52 PM
#2
Re: Any controls can do this??
So, you want a set number of rows and a variable number of columns? There's nothing built into the .NET Framework designed to do that. You could get a DataGridView to display data like that, although it's not natural so it would take a bit of fiddling. There may be third-party grids around that can do it, but they would most likely not be free.
-
Nov 14th, 2010, 10:22 PM
#3
Thread Starter
Lively Member
Re: Any controls can do this??
That is fixed only 2 colums (Named "No","Bit") , I only want the rows keep adding to right instead of traditional keep adding to bottom, i want to confirm that is no any build in .NET framework3.5?
The only way i can do is look for 3rd party?
i am trying datagridview, but failed to explore it. or i missed something?
Last edited by jackeng1983; Nov 14th, 2010 at 10:27 PM.
-
Nov 14th, 2010, 10:56 PM
#4
Re: Any controls can do this??
the listview control has that functionality.
-
Nov 14th, 2010, 10:58 PM
#5
Thread Starter
Lively Member
Re: Any controls can do this??
but i thought listview is cant be editable? readonly?
-
Nov 14th, 2010, 11:52 PM
#6
Re: Any controls can do this??
 Originally Posted by Lord Orwell
the listview control has that functionality.
No it doesn't. A ListView has column headers and no row headers. To add data horizontally instead of vertically you would have to add a new ColumnHeader and then a new subitem to each existing item. For a control to actually support that functionality it would have to allow you to add a single item to a collection to add a new column visually, which is not possible with the ListView.
-
Nov 15th, 2010, 05:07 AM
#7
Banned
Re: Any controls can do this??
no controls do this i think
-
Nov 15th, 2010, 08:56 AM
#8
Re: Any controls can do this??
You can always create your own control to do just that.
VB6 Library
If I helped you then please help me and rate my post!
If you solved your problem, then please mark the post resolved
-
Nov 15th, 2010, 09:28 PM
#9
Re: Any controls can do this??
 Originally Posted by jackeng1983
but i thought listview is cant be editable? readonly?
it's not readonly. It however can only be edited through code. To do what you wanted, you would have to have the metrics of the location of each field and display a textbox there whenever you clicked on that spot. I did this with a program on dvd information once. I had a custom field for notes. It worked fine but if you are wanting the dotted lines between the rows you can't do that.
You could however shade every other row like an accounting sheet.
as jmclhinley said, it doesn't really have row headers, but you could use the primary key that way because every field can have custom fonts and background colors. the left side could be made to look like it.
the reason i suggested that control is the fact any new subitem you add will appear on the far right. However if you need the full editing functionality, you may be better off with the grid control, since it already incorporates the textbox.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|