C Sharp And Ms Access Database Tutorial 19 How To Clear Datagridview

C# And Ms Access Database Tutorial #19 – How To Clear Datagridview In C# Windows Application

VIDEO TUTORIAL

C# And Ms Access Database Tutorial #19 – How To Clear Datagridview In C# Windows Application

This Tutorial Shows How To Clear Datagridview In C# Windows Forms Application using visual studio 2010.

C# SOURCE CODE

        //Clear DataGridView
        private void btnClearDataGridView_Click(object sender, EventArgs e)
        {
            //Check If DataGridView Is Empty
            if (dataGridView1.Rows.Count > 0)
            {
                dataGridView1.Rows.Clear();
            }
            else
            {
                MessageBox.Show("DataGridView Is Empty.................");
            }
        }

Leave a Reply

Your email address will not be published. Required fields are marked *