G
greg
I've got a DataGridView which has a bunch of DataRow's that represent rows in
a table in my database. No brainer
Some of these rows are things such as "province ID" which are keys to a
province table. So I'd like to store these as-is since it makes database
transactions straightforward.
However, is it possible in my DataGridView, to have it format these cells as
text, using a function instead?
eg. for a cell with value 4, I'd like it to call a function
ProvinceCache.getProvinceName(cellValue); which would return a string for the
corresponding province.
Please note that this gridview is read-only, modifying data through the
gridview is not a requirement.
Thanks,
Greg
a table in my database. No brainer
Some of these rows are things such as "province ID" which are keys to a
province table. So I'd like to store these as-is since it makes database
transactions straightforward.
However, is it possible in my DataGridView, to have it format these cells as
text, using a function instead?
eg. for a cell with value 4, I'd like it to call a function
ProvinceCache.getProvinceName(cellValue); which would return a string for the
corresponding province.
Please note that this gridview is read-only, modifying data through the
gridview is not a requirement.
Thanks,
Greg