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

[Solved] Detect which column clicked

1 Answer 112 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Mark Davison
Top achievements
Rank 1
Mark Davison asked on 24 Feb 2011, 04:46 PM
Hi,

I have wired up a Mouse.AddMouseUpHandler to catch single click events on a grid. This works fine but I need to work out which "column" the user has clicked on - I need to run some code if they click on a certain column. Can anyone help with this?

Also, is there a way to stop the selectioncolumn from being ticked when a cell is clicked?

Regards,

Mark

1 Answer, 1 is accepted

Sort by
0
Vanya Pavlova
Telerik team
answered on 24 Feb 2011, 07:44 PM
Hi Mark,

 
You may use the CurrentCellChanged event which fires when the current cell is changed, also you may check the following online demo "Click Events". If you need to remove the border that appears around the current GridViewCell, you may take a look at the following online help article. 

Greetings,
Vanya Pavlova
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Tags
GridView
Asked by
Mark Davison
Top achievements
Rank 1
Answers by
Vanya Pavlova
Telerik team
Share this question
or