2

グリッドビューがあり、この記事の後に変更されました:http://msdn.microsoft.com/en-us/library/aa992036.aspx#Y3473 一括更新を許可します。私は、このループ内の行を更新しようとするたびに:Gridview行更新エラー

For Each r As GridViewRow In GridView1.Rows 
     If IsRowModified(r) Then GridView1.UpdateRow(r.RowIndex, False) 
    Next 

私はこのエラーを取得する:

You have specified that your update command compares all values on SqlDataSource 'ARDataSource', but the dictionary passed in for oldValues is empty. Pass in a valid dictionary for update or change your mode to OverwriteChanges.

私は、これはによって引き起こされることができるか分かりませんか?

答えて

1

ConflictDetectionCompareAllValuesからOverwriteChangesに変更します。 SqlDataSource.ConflictDetection Property

+0

X.Xおそらく最初に試してみました。私は以前からgridviews/datasourcesを使っていて、それまでにそれに遭遇していなかったので、何か別のものだと思っていました。 – Shawn

関連する問題