Pergunta

Using c#.net4.5 telerik, Visual Studio 2012. Winforms.

Simple question, how do I add a new column in a code that can store images in a radgridview?

My old winforms code with datagridview used to be this.

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

Why is this not the case in telerik?

Foi útil?

Solução

You just need to use GridViewImageColumn. More info here.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top