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.
Hi
I''ve encountered a problem which I hope somebody may be able to resolve.
I have a form which has a GridDataBoundGrid in it. The first column of this grid contains combos. I specify this combo as follows in OnLoad:
Me.gbcTargetType.StyleInfo.CellType = "ComboBox"
Me.gbcTargetType.StyleInfo.CellValueType = GetType(String)
Me.gbcTargetType.StyleInfo.DataSource = m_ds.Tables("TableA")
Me.gbcTargetType.StyleInfo.DisplayMember = "Name" '' field to display
Me.gbcTargetType.StyleInfo.ValueMember = "UID_A" '' key to attach
Me.gbcTargetType.StyleInfo.DropDownStyle = GridDropDownStyle.Exclusive
Me.gbcTargetType.MappingName = "FK_A"
I can enter the form, pull down the combos in the grid and select various items. It works perfectly! HOWEVER, if I close the form and then re-open it, add a new entry in the grid by pulling down a new combo entry in the last row, click anywhere else on the grid, I get the following:
"Object reference not set to an instance of an object"
This is very strange! Why should it work the first time but not the second. The database has not been changed so the data should be the same.
Any ideas?
Dave