B
Bhavin Parekh
Hi
I'm building windows form using C# and framework 2.0.
I have got one gridview form with two columns (one is text, another is
checkbox column).
I'm trying to write a code so user can select only one checkbox at a time,
if he tries to select another checkbox from other row, it should prompt
error msg if already one checkbox is selected.
In short, at any time, only one row checkbox should be allowed to be
selected.
I tried to use CurrentCellDirtyStateChanged and counted check value but i
couldn't cancel changes using EndEdit or CancelEdit if selected checkbox are
more than one.
Can anyone help on this?
It would be really appreciated if someone can post dummy code.
Thanks in advance...
I'm building windows form using C# and framework 2.0.
I have got one gridview form with two columns (one is text, another is
checkbox column).
I'm trying to write a code so user can select only one checkbox at a time,
if he tries to select another checkbox from other row, it should prompt
error msg if already one checkbox is selected.
In short, at any time, only one row checkbox should be allowed to be
selected.
I tried to use CurrentCellDirtyStateChanged and counted check value but i
couldn't cancel changes using EndEdit or CancelEdit if selected checkbox are
more than one.
Can anyone help on this?
It would be really appreciated if someone can post dummy code.
Thanks in advance...