On Feb 20, 4:42 am, "Alexey Smirnov" <alexey.smir...@gmail.comwrote:
Quote:
On Feb 20, 12:14 am, r...@rediffmail.com wrote:
>
>
>
>
>
Quote:
On Feb 20, 4:07 am, "Alexey Smirnov" <alexey.smir...@gmail.comwrote:
>
Quote:
Quote:
On Feb 19, 10:39 pm, r...@rediffmail.com wrote:
>
Quote:
Quote:
dgDomain.DataSource = Mid(aList(i), 2, Len(aList(i)))
Note the commented Response.Write line just above the
dgDomain.DataSource line. When I uncomment this Response.Write line,
then all the directories & files get listed one after the other
correctly but they don't get populated in the DataGrid.
>
Quote:
Quote:
Sure, DataSource expected to be an array, and not a string.
>
Quote:
Sorry, Alexey, but I couldn't exactly get your point. Could you please
elaborate? A code sample will be really appreciated.
>
>
The following line
>
dgDomain.DataSource = Mid(aList(i), 2, Len(aList(i)))
>
set a string as the DataSource of your grid.
>
I think that using
>
dgDomain.DataSource = aList
>
will work as you expected.- Hide quoted text -
>
- Show quoted text -
Thanks, Alexey; that has resolved the issued but I couldn't exactly
follow how does
dgDomain.DataSource = aList
resolve the issue & why doesn't
dgDomain.DataSource = aList(i)
populate the DataGrid? Could you please explain me this?
Moreover 2 new problems have also crept up. As you can see from the
code snippet I posted in the very first post in this thread, I am
appending all the directories with 0 & all the files with 1 so as to
ensure that all the directories get listed first followed by the files
but I would like to hide the 0's & 1's from the user. So if I just do
dgDomain.DataSource = aList
then the DataGrid displays all the directories preceded by 0 & all the
files preceded by 1. I can't use any String functions on aList since
it is an array & not a string. How do I get rid of the 0's & 1's from
the directories & files respectively when the DataGrid displays them?
The second problem is, as shown in the code snippet in post #1, if an
item happens to be a file, then I want to display the size along with
the creation time of the file in the DataGrid but I want to display
these 2 pieces of info in 2 different columns in the DataGrid. In
other words, the DataGrid should have 4 columns - the first column
must display a CheckBox for each item (which I have already taken care
of), the second column should display the directory/file name, the
third column should display the size of each item if that item happens
to be a file & the fourth column should display the date & time at
which the files/directories were created.
The Header of the first column in the DataGrid should be a CheckBox
(which I have already taken care of), the Header of the second column
should be 'NAME', the Header of the third column should be 'SIZE' &
the Header of the fourth column should be 'CREATION TIME'.
Now how do I make the DataGrid display the details in this manner?
Thanks once again for your helpful suggestions,
Regards,
Ron