![]() txt so that I can open it with my notepad to test it, you can restore it): private void button1_Click(object sender, EventArgs e) dataGridView1.AllowUserToAddRows = false //do not show the last line ![]() ![]() Label90.Text = System.IO.Path.GetFileName(sfd.FileName) Īs far as I know, if there are some empty data in the datagridview, the empty data is automatically declared null, so you need to determine whether there is empty data in your datagridview: if ( = null)ĭ = "null" Īnd please refer to the following complete code, I create a datatable as the datasource within datagridview: private void Form1_Load(object sender, EventArgs e) Write.WriteLine(checkBo圆.Checked.ToString()) StreamWriter write = new StreamWriter(File.Create(sfd.FileName)) SaveFileDialog sfd = new SaveFileDialog() private void saveToolStripMenuItem_Click(object sender, EventArgs e) It need to include a datagridview as well and I cannot for the life of me figure it out. I have this question in another thread but its already been answered and I think that's throwing people off to not answer my other question (this one).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |