This question is locked. New answers and comments are not allowed.
Hi,
is it possible to handle an event of a grid in one class ?
Currently I've added it on each view, e.g.:
is it possible to handle an event of a grid in one class ?
Currently I've added it on each view, e.g.:
....
_grid.Sorting += new EventHandler<GridViewSortingEventArgs>(_grid_Sorting);
}
void _grid_Sorting(object sender, GridViewSortingEventArgs e)
{
_grid.CommitEdit();
e.Cancel = dataSource.HasChanges
}
Remarks: dataSource is typ of DomainDataSource. I not only want to prevent sorting when CanLoad is false, but implement save and the pending sort as well
Thanks
Berthold
