Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to port non-bound grid functionality

Status
Not open for further replies.

innmedia

Programmer
Mar 24, 2000
108
US
hi all,

I have a VB6 app that I wish to re-write in VB.Net. The VB6 app centers around the Hierarchal flexgrid - using totally unbound. Instead code reads and writes from/to it. By design the VB6 app is not a database app, it uses some text and XML files, and that's it.

In .Net there does not seem to be an equivalent. I see the DataGrid - but it looks like I have to bind it to something. I do not, for example, see a way even to tell it how many rows/columns to display. Perhaps you cannot do this, and it just gets it from the dataset.

What are people using in .Net for an unbound grid??

Thanks!
 

I going to guess no, I don't think I can set a row or column count.
 
You can add to the columns collection. You can add items for rows. You can show gridlines.
 
OK, I am trying it out, it could do it. How do I focus on a row/column position. I see that I can use something like...

With Me.ListView1
.Items(2).Text = "hi"
end with


... to write to the list, but I don't see how to get that "hi" to conform to a row/column coordinate. In VB6 flexgrid is the TextMatrix property which sets the focus to a coordinate. Is there such a thing in the .Net list?
 
Each .Item() has a .SubItem(). I believe the left hand column is .SubItem(0), whereases #2 is .SubItem(1), etc.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top