Click here to Skip to main content
15,885,546 members

Comments by TanvirRaihan (Top 9 by date)

TanvirRaihan 13-May-13 6:45am View    
foreach (FileInfo file in nodeDirInfo.GetFiles())
{
if (file.Extension.ToLower() != ".mp3" || file.Extension.ToLower() != ".cab")
{
// Put it to list view.
}
}
TanvirRaihan 13-May-13 6:45am View    
Deleted
foreach (FileInfo file in nodeDirInfo.GetFiles())
{
if (file.Extension.ToLower() != ".mp3" || file.Extension.ToLower() != ".cab")
{
// Put it to list view.
}
}
TanvirRaihan 13-May-13 6:28am View    
As far as I know, there is no direct process but you can use lambda expression like:
Directory.GetFiles("path").Where(x => !x.EndsWith(".mp3")).

Or you can read all files and check the file extension in a foreach loop before adding them to ListView.
TanvirRaihan 13-May-13 5:36am View    
string itself is a array of char. Why you need to convert it?
TanvirRaihan 13-Feb-13 3:44am View    
Why to use nested grid ? If the question is how to display it line by line, then on row_databound event, we can get the actual string and split it by comma(,) and then join them with a line break in between each splitted item and set the new string in grid's cell.