为什么,我的DevExpress.XtraGrid.GridControl不能显示数据呢?
为什么,我的DevExpress.XtraGrid.GridControl不能显示数据呢?
//
// gridControl1
//
this.gridControl1.Dock = System.Windows.Forms.DockStyle.Fill;
//
// gridControl1.EmbeddedNavigator
//
this.gridControl1.EmbeddedNavigator.Name = "";
this.gridControl1.Location = new System.Drawing.Point(3, 17);
this.gridControl1.MainView = this.gridView1;
this.gridControl1.Name = "gridControl1";
this.gridControl1.Size = new System.Drawing.Size(650, 404);
this.gridControl1.TabIndex = 1;
this.gridControl1.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
this.gridView1});
//
// gridView1
//
this.gridView1.GridControl = this.gridControl1;
this.gridView1.Name = "gridView1";
//
// tbTools
//
this.tbTools.Buttons.AddRange(new System.Windows.Forms.ToolBarButton[] {
this.tbbDelete,
this.tbbSave,
this.tbbSeparator1,
this.tbbExit});
this.tbTools.DropDownArrows = true;
this.tbTools.Location = new System.Drawing.Point(0, 0);
this.tbTools.Name = "tbTools";
this.tbTools.ShowToolTips = true;
this.tbTools.Size = new System.Drawing.Size(656, 41);
this.tbTools.TabIndex = 43;
//
// gridView1
//
this.gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] {
this.colsendCoID,
this.colsendCoName,
this.colsendCoAdd,
this.colsendPostCode});
this.gridControl1.DataSource = DbHelperSQL.Query("SELECT id, sendCoID, sendCoName, sendCoAdd, sendPostCode FROM sendCoInfor").Tables[0];
this.gridControl1.UseEmbeddedNavigator=true;