Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 84751

Edit GridView cell type color will throw exception

$
0
0

Hi all,

I meet a problem. Please help me. Thanks.

radGridView1 is a Telerik.WinControls.UI.RadGridView

My Code:

DataTable _oOptionDataTable = new DataTable();
_oOptionDataTable.Columns.Add("Color", typeof(Color));
DataRow row = _oOptionDataTable.NewRow();
row["Color"] = Color.FromArgb(255, 0, 0);
_oOptionDataTable.Rows.InsertAt(row, 0);
radGridView1.DataSource = _oOptionDataTable;

If I click cell type color, it will throw a exception.

My telerik is 2015.1.331.40, My application is X64

Please help me. Thanks.


Viewing all articles
Browse latest Browse all 84751

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>