This is a migrated thread and some comments may be shown as answers.

Column disappears when reopening property browser.

1 Answer 82 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Michael Asimakopoulos
Top achievements
Rank 1
Michael Asimakopoulos asked on 26 Mar 2010, 01:38 PM
Hi,

I have a data bound grid. The grid is bound to a person object. The person object has a sub object called person_type. The column that displays the person_type should display person_type.description property so I went into the property browser and changed the field name from person_type to person_type.description and closed the property browser. I run my application and everything appears fine. I then tried to edit another property through the property browser but as soon as I opened the browser the person_type column is missing both from the tree on the left as well as the preview on the right. Closing the browser also removed it from the actual control. Running the application again confirms that the column is not there anymore.

Any ideas on what might be happening?

1 Answer, 1 is accepted

Sort by
0
Michael Asimakopoulos
Top achievements
Rank 1
answered on 26 Mar 2010, 03:20 PM
Never mind I found the solution.
I just disabled the Autogenerate columns property after binding the grid for the first time with its data source.
Tags
GridView
Asked by
Michael Asimakopoulos
Top achievements
Rank 1
Answers by
Michael Asimakopoulos
Top achievements
Rank 1
Share this question
or