vs2010 C#编程调试时,显示“无法对null引用进行运行时绑定”,求解决办法啊
internalpartialclassPingfen:DevExpress.XtraEditors.XtraForm{publicPingfen(){Initializ...
internal partial class Pingfen : DevExpress.XtraEditors.XtraForm
{ public Pingfen()
{ InitializeComponent();}
public dynamic GradeXtra;
private void Pingfen_Load(object sender, EventArgs e)
{ try
{ this._grid.DataSource = this.GradeXtra.Data;
this.GradeXtra.RecordRefresh += new EventHandler(GradeXtra_RecordRefresh);
this._view.FocusedRowHandle = -1; }
catch (Exception ex)
{ SysHelper.GetHisApplication().Prompt.Show(ex.Message, MessageBoxButtons.OK); }
}
void GradeXtra_RecordRefresh(object sender, EventArgs e)
{ this._view.FocusedRowChanged -= this._view_FocusedRowChanged;
this._view.RefreshData();
this._view.FocusedRowChanged += this._view_FocusedRowChanged;
this._view.FocusedRowHandle = this.GradeXtra.Data.IndexOf(this.GradeXtra.CurrentGradeItem); } 展开
{ public Pingfen()
{ InitializeComponent();}
public dynamic GradeXtra;
private void Pingfen_Load(object sender, EventArgs e)
{ try
{ this._grid.DataSource = this.GradeXtra.Data;
this.GradeXtra.RecordRefresh += new EventHandler(GradeXtra_RecordRefresh);
this._view.FocusedRowHandle = -1; }
catch (Exception ex)
{ SysHelper.GetHisApplication().Prompt.Show(ex.Message, MessageBoxButtons.OK); }
}
void GradeXtra_RecordRefresh(object sender, EventArgs e)
{ this._view.FocusedRowChanged -= this._view_FocusedRowChanged;
this._view.RefreshData();
this._view.FocusedRowChanged += this._view_FocusedRowChanged;
this._view.FocusedRowHandle = this.GradeXtra.Data.IndexOf(this.GradeXtra.CurrentGradeItem); } 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询