DataGridView: can you add an unbound column to a Data Bound grid?
Posted
by Jack Johnstone
on Stack Overflow
See other posts from Stack Overflow
or by Jack Johnstone
Published on 2010-06-16T13:57:41Z
Indexed on
2010/06/16
15:42 UTC
Read the original article
Hit count: 215
visual-studio-2008
|datagridview
I´m using Visual Studio 2008, C#
DataGridView: can you add an unbound column to a Data Bound grid?
It seems pretty simple, just select the properties ("DataGridView Tasks box") for the data bound DataGridView, and select Add unbound column. However, when in runtime there will be a System.FormatException - which I can understand, as I don´t know how to "initialize" the cells in the new unbound columns.
I was planning initializing it programmatically via CellFormatting event - but so far I´m failing.
Any tips? Just want to get it up and running in SOME way...
© Stack Overflow or respective owner