Abhinav Katiyaar
Top achievements
Rank 1
Abhinav Katiyaar
asked on 28 May 2009, 04:49 AM
Hi,
I have a radgridview with a checkbox column. I want to get which checkbox column ,row i have clicked. I m not finding suitable event for it.
I have a radgridview with a checkbox column. I want to get which checkbox column ,row i have clicked. I m not finding suitable event for it.
5 Answers, 1 is accepted
0
Hi Abhinav Katiyaar,
Please explain a bit further your scenario because I think that you may implement your requirements not in the most straightforward way.
I think that you need ValueChanged event instead of the Click one. In this event you can check what is the type of the current column, for instance:
... and if it is a GridViewCheckBox column, you can use the properties CurrentColumn and CurrentRow to access the current column and row respectively.
All the best,
Nick
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Please explain a bit further your scenario because I think that you may implement your requirements not in the most straightforward way.
I think that you need ValueChanged event instead of the Click one. In this event you can check what is the type of the current column, for instance:
if (radGridView1.CurrentColumn is GridViewCheckBoxColumn) |
{ |
... |
} |
... and if it is a GridViewCheckBox column, you can use the properties CurrentColumn and CurrentRow to access the current column and row respectively.
All the best,
Nick
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Abhinav Katiyaar
Top achievements
Rank 1
answered on 29 May 2009, 03:32 AM
Hi Nick,
Thanks for the reply. ya i got my reqirement in other way. But my main requirement is to have a radiobutton as a column in radgridview(windows form).
Thanks,
Abhinav
Thanks for the reply. ya i got my reqirement in other way. But my main requirement is to have a radiobutton as a column in radgridview(windows form).
Thanks,
Abhinav
0
Hi Abhinav Katiyaar,
Please refer to the following Knowledge Base article demonstrating how you make a RadRadioButtonCellElement: Creating a RadRadioButtonCellElement.
Sincerely yours,
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Prad
Top achievements
Rank 2
answered on 02 Jun 2009, 04:59 PM
You can also use CurrentRowChanged / CurrentRowChanging event to target your need.
0
Smitha Test
Top achievements
Rank 1
answered on 28 Oct 2009, 12:52 AM
THanks