I have created a DataGridView in windows forms application.
i have bound data with DataTable. I get data but it is not displaying. When i select the row then it is visible.
grdPiDetails.DataSource = iDBUtility.GetDataTable("exp_imp_get_all_PI");
This is happening probably because the
Foreground color set as
Include this in your
Form_Load event: [change myDGV with your
myDGV.RowsDefaultCellStyle.ForeColor = Color.Black;
If this won't fix your issue, try @Niraj's solution