Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2016
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.63 KB | None | 0 0
  1.         /*********************
  2.          * Save the details  *
  3.          *********************/
  4.         private void saveDetail()
  5.         {
  6.             using (TextWriter tw = new StreamWriter( path + "\\dataToLoad.ilt"))
  7.             {
  8.                 // Run on all over the table
  9.                 for (int i = 0; i < dataGridView1.Rows.Count ; i++)
  10.                 {
  11.                     // Write to file the value at the table with cell sepereted by the char ' ͌  '
  12.                     tw.WriteLine(dataGridView1[0, i].Value + "͌" + dataGridView1[1, i].Value + "͌" + dataGridView1[2, i].Value);
  13.                 }
  14.             }
  15.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement