Friday, 8 August 2014

Do not save empty data grid view in c#

 int rc = dataGridView1.Rows.Count - 1;
                if (rc > 0)
                {


}
                else
                {
                    MessageBox.Show("No Fees Entered", "No Items", MessageBoxButtons.OK, MessageBoxIcon.Information);
                    cbxDes.Focus();

                }

No comments:

Post a Comment