Get column of currently active cell in ultragrid
I'm trying to create a click event when a user clicks on a specific cell
within an infragistics ultragrid.
At the moment I have:
private void grdPeople_MouseUp(object sender, MouseEventArgs e)
{
if (grdPeople.ActiveRow != null)
{
//if (active cell is in 'select' column???)
grdPeople.ActiveRow.Cells["Select"].Value =
!(bool)grdPeople.ActiveRow.Cells["Select"].Value;
}
}
The column Select is a boolean column which contains a checkbox (for the
purpose of 'selecting' multiple columns easily). However the problem with
this is that it will toggle the checkbox in the Select column even if the
user does not click on that cell - which is not what I want. I only want
the checkbox value in the Select column to change if the user clicks on
that cell. I assume I do this using the ActiveCell property, but not sure
where to go from there.
No comments:
Post a Comment