PickRange method definition:
PickRange(Func<...,bool> handler, cursor)
where
handleris an anonymous function that is called when a range is picked by the user.- Return
truefrom thehandlerif the picked range is acceptable. Returnfalseto continue picking. cursoris the cursor displayed while the user is picking a range. The cursor is restored to the default after the operation ends.
grid.PickRange((inst, range) =>
{
MessageBox.Show("User picked range: " + range.ToString());
return true;
}, Cursors.Hand);
