0
현재 XML 파일에서 읽은 DataSet에 바인딩 된 DataGridView가 있습니다.XML DataGridView DirtyCell
DataGridView를 올바르게 채우십시오. 마지막 열은 사용자가 클릭하여 변경 내용을 커밋하도록하려는 버튼입니다.
더러운 행을 쉽게 찾을 수 있지만, 더티 행 내에서 셀이 더러운 것을 찾는 데 문제가 있습니다.
더티 행 내에서 각 셀을 반복했지만 더러워 보이지 않습니다.
의견을 보내 주시면 감사하겠습니다.
if (this.inventoryGridView.Columns[e.ColumnIndex].Name == "itemCheckedIn")
{
// Give the user a visual indicator the cells are "locked"/readonly by changing the background color
this.inventoryGridView.Rows[e.RowIndex].DefaultCellStyle.BackColor = Color.LightGray;
// Check if any changes have been made to the row that was checked in
if (this.inventoryGridView.IsCurrentRowDirty)
{
foreach (DataGridViewCell dirtyBoy in this.inventoryGridView.CurrentRow.Cells)
{
// Is he dirty?
}
}
// No changes were made to the row that was check in; let's log the check in
else
{
// Log the check in time
}
그러나 내 마지막 수단이 될 수있는 감사합니다 Divi, 그러나 먼저 확인하고 더러운 셀을 가져 오는 올바른 방법이 있는지 확인하고 싶었습니다. 로터리는 항상 내게 냉기를줍니다. < – Jimmerz28
나는 이것을하는 다른 방법을 생각할 수 없었다. 나는 그것의 해킹을 안다. 그러나 ..... 만일 당신이 당신의
관련 문제