StreamReader reader = File.OpenText("mystations.txt");
string line = reader.ReadLine();
while (line != null)
{
// string[] stationtxt = line.Split('\t');
string name = line.Split('\t')[0];
string url = line.Split('\t')[1];
string desc = line.Split('\t')[2];
Image img = Image.FromFile("c:/pictures/"+ name + ".jpg");
line = reader.ReadLine();
dgLogo.Image = new Bitmap(img);
dataGridView1.Rows.Add(name, url, desc, img); //(stationtxt);
}
reader.Close();
reader.Dispose();
I'am able to edit the values in the datagrid but when i reload the form it display the original values of course.
i want to catch the edited values and save it again to the tab delimited text file.
and also be able to delete a row from the text file and datagrid.
the image column is there just for display its not editable.
if someone can provide me a sample or point me in the right direction