siva nathan

siva nathan

  • 950
  • 828
  • 233k

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

May 26 2016 2:08 AM

 

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)