We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Data not displayed on grid from base form.

Thread ID:





20947 Oct 28,2004 01:14 PM UTC Oct 28,2004 02:46 PM UTC WinForms 3
Tags: GridControl
Chris Thompson
Asked On October 28, 2004 01:14 PM UTC

I have a data bound grid on a base form. My form that inherits from the base form sets the data source and columns. When I load my inherited form I fill the dataset that the gird is bound to. When I run the app, the inherited form displays the grid with the correct number of rows but the data is missing. The data is in the data set but it does not display in the grid. If I edit a cell in the grid the text just entered disappears when I click to another cell. Also there is one extra column displayed at the end of the grid that has no header and is not clickable. What is going on here?

Administrator [Syncfusion]
Replied On October 28, 2004 01:26 PM UTC

Just a guess, but after populating the dataset and setting the datasource to the grid in the derived form, try calling grid.Binder.IntializeColumns followed by grid.Refresh to see if this takes care of this problem.

Chris Thompson
Replied On October 28, 2004 01:37 PM UTC

That worked. What was strange was this only happened when I specified bound columns.

Administrator [Syncfusion]
Replied On October 28, 2004 02:46 PM UTC

If you specify boundcolumns AFTER the grid.DataSource property has been set, then that is one situation where grid.Binder.InitializeColumns is needed. Calling this method clears out the orginal columns that were set when the DataSource was assigned.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon