DevExpress gridView Columns Add

SHADOW.NET picture SHADOW.NET · Apr 6, 2014 · Viewed 16.2k times · Source

I'm using DevExpress library.

I have problem with GridControl the following property is not appear :

gridView1.Columns.Add(); // not appear why ? 

My references are:

using DevExpress.XtraGrid.Views.Base;
using DevExpress.XtraGrid.Views.Grid;
using DevExpress.XtraGrid.Columns;

Answer

Sagar Deshpande picture Sagar Deshpande · Aug 18, 2014

Maybe you have not added references in solution explorer..

I follow the steps below:

GridColumn col=new GridColumn();
col.Caption = "Samples";
col.FieldName = "Samples";
gridView1.Columns.Add (col)