Pick range

PickRange method usage:
PickRange( Func<...,bool> handler, Cursor )
where handler is an anonymous function that is called when range picked by user.
Return true from this handler if range is expected.
Return false will continue pick range until return true from this handler.
Cursor is cursor displayed when user picking range. Cursor will be restore to default if picking operation has been terminated.

grid.PickRange((inst, range) =>
  MessageBox.Show("User picked range: " + range.ToString());
  return true;
}, Cursors.Hand);


Next: Freeze

Last edited Feb 5, 2014 at 3:46 PM by unvell, version 3