c# - .Net DataGridViews Bound to Same Binding Source in Different Tab Pages -
I have a winform (C # VS2008 .NET 3.5) with a tab control. Data grid views are tied to the same binding source in two pages of tab control. It works fine.
However, tab pages have a bug in tab pages, the data grid view created in the tab page always shows the first column of the bound table, even if it is visible at design time.
To work around this, you set the column. It worked fine when I had only one DGV binding source, with two bounds, some strange things happen I manually set the first column of both DGV to Visual = false, but sometimes only The only one actually takes, and the column is still shown in the other Also, when the column is shown before clicking on a record in DGV, the following exception has been raised:
Invalid operation expedition - The operation is not valid because it results in the RENTONT call on the CTRCellCressress function.
Comments
Post a Comment