I want to create a listview of files on the disk for further processing when selected. So I created a listview with the columns filename, date, and size. I then load the listview with the following function:
private void Window_Loaded(object sender, RoutedEventArgs e)
{
foreach (string s in Directory.GetLogicalDrives())
{
filelist.Items.Add(s);
}
}
This lists the drives in the system to start which is fine, but what shows up on screen is
filename date size
c:\ c:\ c:\
d:\ d:\ d:\
So, my question is, how to I set subcolumns date and size to "" or " "?