This is a migrated thread and some comments may be shown as answers.

any checkbox event dere in grid..

5 Answers 135 Views
GridView
This is a migrated thread and some comments may be shown as answers.
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. 

5 Answers, 1 is accepted

Sort by
0
Nick
Telerik team
answered on 28 May 2009, 02:13 PM
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:

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
0
Nikolay
Telerik team
answered on 30 May 2009, 01:52 PM

Hi Abhinav Katiyaar,

Please refer to the following Knowledge Base article demonstrating how you make a RadRadioButtonCellElement: Creating a RadRadioButtonCellElement.
 
Sincerely yours,

Nikolay
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
Tags
GridView
Asked by
Abhinav Katiyaar
Top achievements
Rank 1
Answers by
Nick
Telerik team
Abhinav Katiyaar
Top achievements
Rank 1
Nikolay
Telerik team
Prad
Top achievements
Rank 2
Smitha Test
Top achievements
Rank 1
Share this question
or