Format of DataGridView value
Posted
by Vadim
on Stack Overflow
See other posts from Stack Overflow
or by Vadim
Published on 2010-03-17T10:59:02Z
Indexed on
2010/03/17
11:01 UTC
Read the original article
Hit count: 200
I have a DataGridView which is filling from Table in SQL Server Database. One of it's columns is "price".
Type of column in DGV is automatically sets as Decimal.
In some cases I need to write in cells of this column text like "none", instead of price.
How can I do it?
DGV.Item("price", 0).Value = "none" doesn't work, because of decimal type of a cell.
© Stack Overflow or respective owner