Posted 29 November 2020, 3:21 pm EST
I have an application (VB, winforms) that uses the FlexGrid. Users are able to insert and edit rows in the FlexGrid. Some of the fields are databound drop down lists. I am using the “AfterEdit” event to detect a change to a drop down list and I am trying to then populate one of the other databound colums with text depending on which option was selected from the list. For example:
If Not IsDBNull(fgQuoteDetails.Rows(e.Row).Item("PartCategoryID")) Then fgQuoteDetails.Rows(e.Row).Item("Description") = GeneratePartNo(e.Row).Item("PartCategoryID")) End If
The problem is that the code executes but does exactly nothing. In fact, I can use the same event and try to set the value of any of the bound columns to “Test” and the code executes but is completely ignored and no value is ever set into the column.
I just need to know how I can set a value of a databound column in code at runtime.