1
グリッドビューを使用していますが、auto generate column = true; 私はグリッドビューの行更新の問題
protected void UpdateRecord(object sender, GridViewUpdateEventArgs e)
{
TextBox tPropertyId = (TextBox)row.FindControl("PropertyId");
}
がcalled.The proplemをお得ているグリッドを更新していますtPropertyId
がnull値を取得していると私は tPropertyId.Text
をしていたとき、私はnull参照の例外を取得しています、ということです。
お願いします。
何 'row'を試してみてください? ['GridViewUpdateEventArgs.NewValues'](http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.gridviewupdateeventargs.newvalues.aspx)プロパティを見てください。 –