Datagridview not showing data after setting a datasource

  • Thread starter Thread starter robertd9031
  • Start date Start date
R

robertd9031

Guest
Why, when setting a DataGridView's DataSource, to a data source--does it NOT display the data?

Checklist:

1. DataSource contains data--check (DataTable contains rows, checked and verified)

2. DataGridView (selected) columns defined--check (Checked and verified against columns of DataSource's DataTable)

3. DataGridView is VISIBLE, and ENABLED--check (DataGridView will display the correct number of ROWS--but NO DATA)

4. DataGridView colors are NOT colliding, i.e. (Same color background AND foreground)--check

5. No PRE-ROW/POST-ROW events, screwing up the works--check (Never put them in--yet.)

What else is there that would prevent data from being displayed?

(No, can NOT use AutoGenerate columns--don't want ALL columns to be displayed. See #2 above.)

It just seems odd that, when DataSource is bound to a source (that contains the "proper" data)--it's not displayed. It's obvious that the data is recognized--seeing as the correct number of ROWS are displayed. ???

Continue reading...
 
Back
Top