2
Answers

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

siva nathan

siva nathan

8y
259
1

 

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)