N
NI-Student
Hi ...
I am a beginer of C# programing.
I want to show file list in a DataGridView.
So i coded like this.
grdFiles.AutoGenerateColumns = true;
OpenFileDialog openFile = new OpenFileDialog();
openFile.Multiselect = true;
if (openFile.ShowDialog() == DialogResult.OK)
{
files = openFile.FileNames;
grdFiles.DataSource = files;
}
NOTE: file is already define in top of the class as string[] file;
When i run this application, DataGridView Show only the length of the file in one coloumn.
I want to show the selected files list in a grid.
Please can anyone help me to solve this problem please...
Please.....
I am a beginer of C# programing.
I want to show file list in a DataGridView.
So i coded like this.
grdFiles.AutoGenerateColumns = true;
OpenFileDialog openFile = new OpenFileDialog();
openFile.Multiselect = true;
if (openFile.ShowDialog() == DialogResult.OK)
{
files = openFile.FileNames;
grdFiles.DataSource = files;
}
NOTE: file is already define in top of the class as string[] file;
When i run this application, DataGridView Show only the length of the file in one coloumn.
I want to show the selected files list in a grid.
Please can anyone help me to solve this problem please...
Please.....