I am seeing an odd issue and hoping someone may have some guidance. In our app, I added sfoSelectColumns to each grid's title menu attributes. When the menu option is selected, the columns dialog appears and I select (check) a column to add. However, the column is not added.
In troubleshooting, ExecuteSelectGridColumnsDialog shows the dialog, iterates the nodes, and finds the node that I checked. At this point, node.FieldName is an empty string for some reason. Walking backwards and looking at TwwCustomDBGrid.DoInitSelectColumnsDialog, I confirmed that node.FieldName is assigned the expected field name. I also confirmed the memory address of the node is the same address of the node at the point that FieldName is empty.
Further, I assigned a setter method to the TwwSelectColumnsTreeNode.FieldName property, to try and find a reason for the value to be an unexpected empty string. No luck. I have not been able to determine why the FieldName value is lost.
I have not been able to reproduce the issue in a simple test app. My plan is to get the test app closer to the configuration of the real application.
Our app is using ADO (dbGo) datasets and TwwDataSource. TwwDBGrid.UseTFields is False, although setting it to True does not resolve the issue.
Any thoughts? Thanks.
Please sign in to leave a comment.