Click here to Skip to main content
15,891,607 members
Home / Discussions / C#
   

C#

 
QuestionHow to attach a file(attachment) in a datagrid cell? Pin
hhill24-Mar-09 20:27
hhill24-Mar-09 20:27 
AnswerRe: How to attach a file(attachment) in a datagrid cell? Pin
King Julien24-Mar-09 21:37
King Julien24-Mar-09 21:37 
QuestionListView in C# Pin
mrithula824-Mar-09 20:00
mrithula824-Mar-09 20:00 
AnswerRe: ListView in C# Pin
Christian Graus24-Mar-09 20:25
protectorChristian Graus24-Mar-09 20:25 
GeneralRe: ListView in C# Pin
mrithula824-Mar-09 20:56
mrithula824-Mar-09 20:56 
GeneralRe: ListView in C# Pin
King Julien24-Mar-09 21:23
King Julien24-Mar-09 21:23 
GeneralRe: ListView in C# Pin
mrithula824-Mar-09 21:36
mrithula824-Mar-09 21:36 
GeneralRe: ListView in C# Pin
King Julien24-Mar-09 23:00
King Julien24-Mar-09 23:00 
Hi mrithula....

I have personally checked the below code and its working properly in my machine....

DirectoryInfo di = new DirectoryInfo(fbd.SelectedPath);
 if (di.Exists)
 {
   String[] files;
   files = Directory.GetFiles(fbd.SelectedPath);
   foreach (string file in files)
   {
     ListViewItem lvi = new ListViewItem();
     lvi.Text = file;
     lvi.ImageIndex = 0;
     listView1.Items.Add(lvi);
   }
 }      


If it shows any error let me know....

Have a Happy Coding.....

GeneralRe: ListView in C# Pin
mrithula825-Mar-09 0:11
mrithula825-Mar-09 0:11 
GeneralRe: ListView in C# Pin
King Julien25-Mar-09 0:55
King Julien25-Mar-09 0:55 
GeneralRe: ListView in C# Pin
mrithula825-Mar-09 19:25
mrithula825-Mar-09 19:25 
GeneralRe: ListView in C# Pin
King Julien25-Mar-09 20:08
King Julien25-Mar-09 20:08 
GeneralRe: ListView in C# Pin
mrithula825-Mar-09 20:18
mrithula825-Mar-09 20:18 
GeneralRe: ListView in C# Pin
King Julien25-Mar-09 20:49
King Julien25-Mar-09 20:49 
GeneralRe: ListView in C# Pin
mrithula825-Mar-09 21:08
mrithula825-Mar-09 21:08 
GeneralRe: ListView in C# Pin
King Julien25-Mar-09 21:30
King Julien25-Mar-09 21:30 
GeneralRe: ListView in C# Pin
mrithula826-Mar-09 1:08
mrithula826-Mar-09 1:08 
GeneralRe: ListView in C# Pin
King Julien26-Mar-09 1:24
King Julien26-Mar-09 1:24 
GeneralRe: ListView in C# Pin
mrithula826-Mar-09 1:32
mrithula826-Mar-09 1:32 
GeneralRe: ListView in C# Pin
King Julien26-Mar-09 1:56
King Julien26-Mar-09 1:56 
GeneralRe: ListView in C# Pin
mrithula826-Mar-09 5:59
mrithula826-Mar-09 5:59 
GeneralRe: ListView in C# Pin
mrithula826-Mar-09 19:00
mrithula826-Mar-09 19:00 
GeneralRe: ListView in C# Pin
King Julien26-Mar-09 19:22
King Julien26-Mar-09 19:22 
GeneralRe: ListView in C# Pin
mrithula829-Mar-09 0:51
mrithula829-Mar-09 0:51 
AnswerRe: ListView in C# [modified] Pin
Xmen Real 24-Mar-09 20:35
professional Xmen Real 24-Mar-09 20:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.