Frage

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?

War es hilfreich?

Lösung

You just need to use GridViewImageColumn. More info here.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top