2015년 3월 9일 월요일

Devexpress_Grid DataSet.GetChanges Method

OS : Windows 7
IDE : Microsoft Visual Studio Professional 2012
Microsoft .NET Framework 4.5.51209
DeploymentTool : DevExpress 14.1
Form : WinForm

The GetChanges method is used to produce a second DataSet object that contains only the changes introduced into the original.
Use the rowStates argument to specify the type of changes the new object should include.

gridView1.GetFocusedDataRow().EndEdit();
DataTable changes = ((DataView)gridView1.DataSource).Table;

if (changes.GetChanges(DataRowState.Modified) == null)
{
 MessageBox.Show("Table 변경된 정보가 없습니다.");
 return false;
}

if (changes.GetChanges(DataRowState.Modified).Rows[0] == null)
{
 MessageBox.Show("Rows[0] 변경된 정보가 없습니다.");
 return false;
}

Today.
If you would be loved, love and be lovable.
(사랑 받고 싶다면 사랑하라, 그리고 사랑스럽게 행동하라.)

댓글 없음:

댓글 쓰기

대항해시대 조선 랭작

숙련도 획득 방법 선박 건조, 선박 강화, 전용함 추가시 숙련도 획득 모두 동일한 공식 적용 획득 숙련도 공식 기본 획득 숙련도 ≒ int{건조일수 × 현재랭크 × (0.525)} 이벤트 & 아이템 사용...