Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void grdvTest_DataBindingComplete(object sender, DataGridViewBindingCompleteEventArgs e)
- {
- try
- {
- var grdv = sender as DataGridView;
- foreach(DataGridViewRow row in grdv.Rows)
- {
- DataGridViewCell BookButtonCell = row.Cells[0];
- ViewModelMyItem item= row.DataBoundItem as ViewModelMyItem ;
- if (item.IsDeleted)
- {
- row.Cells.Remove(BookButtonCell);
- }
- }
- }
- catch(Exception ex)
- {
- throw ex
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement