문제

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?

도움이 되었습니까?

해결책

You just need to use GridViewImageColumn. More info here.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top