windows explorer like table

  • Thread starter Thread starter Saso Zagoranski
  • Start date Start date
S

Saso Zagoranski

Hi!

I would like to know whether there is a component included in .net fw, which
resembles
Windows explorer table, where you have:
filename file size ...

Or has anyone else created such a component? Or does anyone have any
starting ideas on making one? I've made a similar Table with an array of
TextBox-es but it wasn't so "smooth looking" as the one in win xp :)

Saso
 
Hi Saso,

I would like to know whether there is a component included in .net
fw, which resembles
Windows explorer table, where you have:
filename file size ...

Or has anyone else created such a component? Or does anyone have any
starting ideas on making one? I've made a similar Table with an array
of TextBox-es but it wasn't so "smooth looking" as the one in win xp
:)

The TreeView and the ListView are the controls you should use, however you
will have to populate them yourself. The ListView ist the right side of the
wqindows explorer, the TreeView is the left side. Try the different looks of
the ListView, and you will see ...

Regards,
 
Saso,
The 'table' in Windows Explorer is a ListView object.

When you are seeing 'filename file size ...' the ListView has its View
property set to View.Details, there are also View.LargeIcon, View.List, and
View.SmallIcon.

The ListView object has a collection of ListViewItem objects,
ListViewItem's have a collection of ListViewSubItem objects. The
ListViewItem represents the File (name) itself. The ListViewSubItem
represents details of the file (file size).

See System.Windows.Forms.ListView for details.

Filling the list view with file details you will need to do yourself.

Hopefully this helps
Jay
 
Thanks for the answers... I looked at ListView object before but only for a
minute because it looks so basic. Now I know that with a little editing it
can become much more... thanks...

One more question... is it possible to make an editable table from ListView?
I'm making something like this:
StudentID StudentName StudentSurname
1 Test Name

And I would be entering values row by row...

Thanks again for the answers...
 
Saso,
The easiest way to have an 'editable' table is to use the DataGrid.

The ListView only supports editing the first field (the ListItem itself).

Hope this helps
Jay
 
Back
Top