when i hid the particular column i don't want to hid the date and session in data grid view.
for that how to validate.
Hide button code as follows;
if (MessageBox.Show("Are You sure, You want to Hide?", "Hide confirmation", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
{
datagridView.Columns[datagridView.CurrentCellAddress.X].Visible = false;
}
Output as follows; Hide(Button)
DATE SESSION RK Mk CK VB GS CMK UNNI
1//2013 1
in that when i click the hide button,in that column values is there that validation is working fine. no problem.
But i don't to hide the DATE and SESSION Column always in data grid view.
for that validation how to write the code.