The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
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?
ADAdministrator Syncfusion Team 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.
CTChris ThompsonOctober 28, 2004 01:37 PM UTC
That worked. What was strange was this only happened when I specified bound columns.
ADAdministrator Syncfusion Team 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.