DataGridView not generating columns from binding source

0
0

When placing the second DataGridView on a form or a page and setting the Datasource under the Tasks the columns in the grid are not generating.

I can toggle the AutoGenerateColumns property and one column at a time will set but not always the column from the binding source used.

A separate test form can be used to setup a new grid using cut and past as a work around.

The process works fine in a standard winforms application.

Clearly a bug in the background.

To replicate this pull two datagridviews onto a form and setup the data binding and you will soon see the columns don’t populate.

 

 

  • You must to post comments
0
0

Hi Warren

Thanks for reporting the issue.

¿could be possible that you provide us a sample to reproduce the issue?

Ideally the data source is in the same project

Regards

Paul

  • You must to post comments
0
0

Sample attached – pulled the Wisej.Framework.dll and xml out of bin folder to reduce the size.

Tried this on a couple machines and code projects and they all react the same.

Seems to be a bug with setting or changing a grid datasource. The grid will do the first column and then flip the properties dialog to that first column, sets the AutoGenerateColumns = False and stops generating the rest of the columns.

I have discovered that if I close the form and reopen it the grid columns generate as they should if the AutoGenerateColumns is reset to True on the offending grid.

I can work with this now that i’m aware of it.

Thanks for the fast response!

  • You must to post comments
0
0

Hi Warren

Thanks for the sample, it’s very clear with the steps that you described

I’ve logged the issue as #2305. We’ll let you know when a fix is available!

Regards and happy coding

Paul

  • You must to post comments
Showing 3 results
Your Answer

Please first to submit.