private void dgvBook_CellEndEdit(object sender, DataGridViewCellEventArgs e)
{
DataGridView view = (DataGridView)sender;
DataGridViewColumn column = view.Columns[e.ColumnIndex];
if (column.DataPropertyName.Equals("category") ||
column.DataPropertyName.Equals("count"))
{
return;
}
Library.Util.UpdateGridCellForBook(
(DataGridView)sender, "book", e.RowIndex, e.ColumnIndex);
}