Hi,
I am using a Datasource to populate the gridview. The databinding is done via the propertybuilder at the design time. The Grid works fine when the database connection is established. however when there is an error connecting the database an empty grid is shown and there is no error thrown out.
Here is the high level data flow:
GridView <-> bindingDataSource <-> dataset (mapped to a database table)
The dataset is generated automatically and mainly configured via XSD. The database access is done via Integrated Security (via windows authentication)
Where is the best place to handle database connection error (for example connection failure, user connection reject)?
.Net version 4.0
Windows Forms version 2013.2 724
Thanks
AMP
I am using a Datasource to populate the gridview. The databinding is done via the propertybuilder at the design time. The Grid works fine when the database connection is established. however when there is an error connecting the database an empty grid is shown and there is no error thrown out.
Here is the high level data flow:
GridView <-> bindingDataSource <-> dataset (mapped to a database table)
The dataset is generated automatically and mainly configured via XSD. The database access is done via Integrated Security (via windows authentication)
Where is the best place to handle database connection error (for example connection failure, user connection reject)?
.Net version 4.0
Windows Forms version 2013.2 724
Thanks
AMP