Is there any chance of adding a calculated column (a complex calculation, not possible to calculate in SQL) on a DataGridView (WinForms – vb.NET)?
I was hoping something like when I have in ASP.NET the RowDataBound Event of GridView control, but the way of link data of asp and vb are way too different.
To do this you can add an unbound column to the grid:
And place the grid in VirtualMode:
Then use a handler for the CellValueNeeded event:
In the handler above I just set the value to something trivial but you can add any calculation you like here.