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

Events Not Firing

2 Answers 450 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Todd
Top achievements
Rank 1
Todd asked on 05 May 2017, 05:30 PM

I cannot get any Events to Fire for radGridView (C#).

Examples:

private void radGridView1_Click(object sender, EventArgs e)
{
MessageBox.Show("Event Fired");
}
void radGridView1_CellValueChanged(object sender, GridViewCellEventArgs e)
{
MessageBox.Show("Event Fired");
}

Is there a missing reference or something?

2 Answers, 1 is accepted

Sort by
0
Accepted
erwin
Top achievements
Rank 1
Veteran
Iron
answered on 06 May 2017, 07:35 AM

Most likely the visual Studio designer has messed up with your event handlers.

Using 'Find all References' in Visual Studio, check if your handlers are still connected.

The search should point you to the code in the .Desinger File (or maybe your own code), where you should find something like:

radGridView1.CellValueChanged += new Telerik.WinControls.UI.GridViewCellEventHandler(this.radGridView1_CellValueChanged);

    

 

 

 

 

 

0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 08 May 2017, 11:35 AM
Hello Todd,

Thank you for contacting Telerik Support.

Following the provided information, I was unable to reproduce the issue you are facing. Please refer to the attached gif file illustrating the behavior on my end with the specified version. I have attached my sample project. Could you please specify the exact steps how to reproduce the problem or get back to me with a sample project in the support thread that you have opened so I can investigate the precise case? Thank you in advance. 

It is recommended to try Erwin's suggestion. Thus, you will find out whether you actually have event subscriptions.

I am looking forward to your reply.

Regards,
Dess
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
GridView
Asked by
Todd
Top achievements
Rank 1
Answers by
erwin
Top achievements
Rank 1
Veteran
Iron
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or