2013-04-10 57 views
0

使用C#.net4.5 Telerik的时,Visual Studio 2012的WinForms。图像列添加到Telerik的radgrid控件

简单的问题,我怎么有一个新的列码可以存储在radgridview图像?

我与DataGridView的旧的WinForms代码中使用是这个。

DataGridViewImageCell p2 = new DataGridViewImageCell(); 
dgv_Pareto.Columns.Add(new DataGridViewImageColumn() { CellTemplate = p2, FillWeight = 1, HeaderText = "p2", Name = "p2", Width = 30 }); 

为什么啊,为什么这不是在Telerik的情况。

在先进的感谢!

回答

1

你只需要使用GridViewImageColumn。更多信息here

+0

啊我不是在寻找明显!得到它的工作感谢帮助,不幸的是它不喜欢我的形象,我不能将图像添加到grid.cell [index] .value遍历行?或者这不是做这件事的方法吗? – lemunk 2013-04-12 07:30:03

+0

您应该可以使用位图或图像类型。你使用的是什么类型? 您可以如下设置图像像元值: radGridView1.Rows [index] .Cells [“ColumnName”]。Value = yourImage; – checho 2013-04-12 11:26:36

+0

nah我排序它,是正确的,只是我忘了填写我只创建的图像。大声笑。为此欢呼 – lemunk 2013-04-12 11:28:58