Hi Danny,
It's a bit clunky because we don't have the right events in place in the business logic.
Adding the columns is easy - just in form setup you add them:
- Code: Select all
poGenForm.ProductsJiwaGrid.AddColumn("Test", New JiwaFinancials.Jiwa.JiwaApplication.JiwaManageGrid.JiwaTextCellType, "Test", 5, False, , False, True, 50)
Then add a handler for the button to fetch the results to populate the grid:
- Code: Select all
AddHandler poGenForm.GetCandidatesUltraButton.Click, AddressOf GetCandidatesUltraButton_Click
The inefficient part is what comes next - you have to call the stored proc used again, after the business logic has and iterate the results, looking for the row and match that up with the row in the grid, then set the value.
Attached is a plugin which does all this - note: I only added one column "Test" to the grid, and I modified my stored procedure (based on usp_JIWA_Batch_PurchaseOrder_ReplenishToMinimum) to return a column "Test" as well.
Mike