WinData.DataObject.Table y = new WinData.DataObject.Table(design_form");
y.SelectCommandText = @"SELECT 'series' SERIES
,convert(datetime,'2021-11-23 15:56:30.073') FactStartDate
";
y.Open();
C1.Web.Wijmo.Controls.C1GridView.C1GridView c1g = new C1.Web.Wijmo.Controls.C1GridView.C1GridView();
C1ButtonField cbtModify = new C1ButtonField();
cbtModify.CommandName = c1g.ID + "Modify1";
cbtModify.Text = "Modify1";
C1ButtonField cbtDelete = new C1ButtonField();
cbtDelete.CommandName = c1g.ID + "Delete1";
cbtDelete.Text = "Delete1";
c1g.Columns.Add(cbtModify);
c1g.Columns.Add(cbtDelete);
c1g.RowCommand += new C1GridViewCommandEventHandler(this.C1GridView2_RowCommand);
c1g.DataSource = y.DataTable;
c1g.DataBind();
当有【convert(datetime,'2021-11-23 15:56:30.073') 】 datetime类型字段时就会出现此错误
|