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''m having trouble when trying to access columns that are added to my table through a ForeignKeyReference-relation.
Example:
I add a relation to a child table containing the field "Message". The relation is named "rel".
//Add relation
myGrid.TableDescriptor.Relations.Add(myRel);
//Remove all visible columns
myGrid.TableDescriptor.VisibleColumns.Clear();
if( myGrid.TableDescriptor.Columns.Contans("rel_Message") )
{
myGrid.TableDescriptor.Columns["rel_Message"].HeaderText = "Message";
myGrid.TableDescriptor.VisibleColumns.Add("rel_Message");
}
If I put a break-point in the first line and steps over it, the new column is added and available in the TableDescriptor.Columns - collection. If I don''t put a breakpoint there, the column is not available immediately.
What is the solution to this problem?
ADAdministrator Syncfusion Team February 24, 2005 12:48 PM
After adding the columns, try setting
this.gridGroupingControl1.Table.CountersDirty = true;
to see if that takes care of this problem.
ADAdministrator Syncfusion Team February 24, 2005 02:08 PM
>After adding the columns, try setting
>
>this.gridGroupingControl1.Table.CountersDirty = true;
>
>to see if that takes care of this problem.
Unfortunately it didn''t.
Same behaviour.
ADAdministrator Syncfusion Team February 24, 2005 02:46 PM
Does calling
myGrid.TableDescriptor.Columns.LoadDefault()
help?
Stefan
>
>
>>After adding the columns, try setting
>>
>>this.gridGroupingControl1.Table.CountersDirty = true;
>>
>>to see if that takes care of this problem.
>
>Unfortunately it didn''t.
>Same behaviour.