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

翻译|其它|编辑:郝浩|2005-05-31 09:58:00.000|阅读 1228 次

概述:

# 界面/图表报表/文档/IDE等千款热门软控件火热销售中 >>


程序代码如下所示:

using System;
using System.Collections;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Windows.Forms;

namespace Device.Forms.UI.Grids
{
/// <summary>
/// NewDataGrid 的摘要说明。
/// </summary>

public class NewDataGrid : DataGrid
{
/// <summary>
/// 必需的设计器变量。
/// </summary>
private System.ComponentModel.Container components = null;

public NewDataGrid()
{
  // 该调用是 Windows.Forms 窗体设计器所必需的。
  InitializeComponent();

  // TODO: 在 InitializeComponent 调用后添加任何初始化

}

/// <summary>
/// 清理所有正在使用的资源。
/// </summary>

protected override void Dispose( bool disposing )
{
  if( disposing )
  {
    if(components != null)
  {
    components.Dispose();
    }
   }
  base.Dispose( disposing );
}

#region 组件设计器生成的代码
/// <summary>
/// 设计器支持所需的方法 - 不要使用代码编辑器
/// 修改此方法的内容。
/// </summary>

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;
   }
 }

 }
}
 


标签:

本站文章除注明转载外,均为本站原创或翻译。欢迎任何形式的转载,但请务必注明出处、不得修改原文相关链接,如果存在内容上的异议请邮件反馈至chenjj@evget.com


为你推荐

  • 推荐视频
  • 推荐活动
  • 推荐产品
  • 推荐文章
  • 慧都慧问
扫码咨询


添加微信 立即咨询

电话咨询

客服热线
023-68661681

TOP