2
Reply

'field' but is used like a 'type' [duplicate]

siva nathan

siva nathan

May 26 2016 2:08 AM
251

 

BandedGridView view = gridControl1.MainView as BandedGridView;
view.Bands.Clear();
GridBand Sup = view.Bands.Add();
Sup.Caption = "Po Information";
 
 
GridBand1 Sup = view.Bands.Add();
 // i get the error here [ GRIDBAND is a field but is used like a TYPE]
 
Sup.Caption = "Price Information";
bandedGridView1.Columns["PO Number"].OwnerBand = Sup;
bandedGridView1.Columns["PO Date"].OwnerBand = Sup;
bandedGridView1.Columns["Supplier"].OwnerBand = Sup;
bandedGridView1.Columns["Createdon"].OwnerBand = Sup;
bandedGridView1.Columns["Edit"].OwnerBand = Sup;

Answers (2)