We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Row Enter event

Thread ID:





12814 Apr 13,2004 01:22 PM UTC Apr 13,2004 03:52 PM UTC WinForms 1
Tags: GridControl
Administrator [Syncfusion]
Asked On April 13, 2004 01:22 PM UTC

I have a databound grid control that has several rows in it. Some of the rows are read only and I use the gridRowEnter event to prevent them from editing that row (set e.cancel = true). However when the first row is not editable I get duplicate pop-ups (I pop up a message box warning). I have tried to set the currentcell to row 0 using the moveto method however I still see the little triangle pointer in row 1 (which I believe is why the cancel of rowenter causes the duplicate pop-up). Any suggestions?

Administrator [Syncfusion]
Replied On April 13, 2004 03:52 PM UTC

Try hooking the RowEnter event after you have set your DataSource to the grid. So, maybe add a FormLoad handler and at the bottom of FormLoad, subcribe to the RowEnter event. In VB, you would want to remove the Handles clause from the handler signature line and instead add a AddHandler call at the bottom of formload. In C#, you could just move the designer code subscribing to the event to the bottom of formload.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon