当前位置: 首页 > 图文教程 > 网络编程 > ASP.NET > 暂时性的解决datagrid控件数据绑定时候xxx字段不属于xxx表的错误

ASP.NET
十天学会ASP.net之第二天
十天学会ASP.net之第四天
十天学会ASP.net之第五天
十天学会ASP.net之第六天
十天学会ASP.net之第七天
十天学会ASP.net之第八天
十天学会ASP.net之第九天
十天学会ASP.net之第十天
在.net中Oracle日期类型的处理
ASP.Net的6大焦点问题
关于Web站点不同,共享Session的问题
判断浏览器是否接受Cookies
DataGrid的多行提交
C#中连接两个DataTable,相当于Sql的InnerJoin
ASP.Net常用功能整理--生成图片的缩略图
在程序中书写SQL语句
正则表达式的3种匹配模式
ASP.NET的高级调试技巧
基于C#的接口基础教程之七
ASP.NET对IIS中的虚拟目录进行操作

ASP.NET 中的 暂时性的解决datagrid控件数据绑定时候xxx字段不属于xxx表的错误


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-11-03   浏览: 50 ::
收藏到网摘: n/a


using System;using System.Collections;using System.ComponentModel;using System.Drawing;using System.Data;using System.Windows.Forms;
namespace Device.Forms.UI.Grids{ /// /// NewDataGrid 的摘要说明。 /// public class NewDataGrid : DataGrid { /// /// 必需的设计器变量。 /// private System.ComponentModel.Container components = null;
public NewDataGrid() { // 该调用是 Windows.Forms 窗体设计器所必需的。 InitializeComponent();
// TODO: 在 InitializeComponent 调用后添加任何初始化
}
/// /// 清理所有正在使用的资源。 /// protected override void Dispose( bool disposing ) { if( disposing ) { if(components != null) { components.Dispose(); } } base.Dispose( disposing ); }
#region 组件设计器生成的代码 /// /// 设计器支持所需的方法 - 不要使用代码编辑器 /// 修改此方法的内容。 /// private void InitializeComponent() { // // NewDataGrid // this.Name = "NewDataGrid"; //this.Load += new System.EventHandler(this.NewDataGrid_Load);

} #endregion
protected override void OnEnter(EventArgs e) { try{ base.OnEnter(e); } catch{ return; } } }}