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

datagridcellxcellenable problem

Hey I just tried the http://www.syncfusion.com/faq/winforms/Files/datagridcellxcellenable.zip code and I have a little problem with it. I rewrote the SetEnableValues method to: if(this.dataGridSelection[e.Row,4].ToString() == "Y") e.EnableValue = false; else e.EnableValue = true; with this I check if column 5 is 'Y'. This is what happens: 1. I select a row(#1) which is colored grey and is not editable due to your code. 2. I want to add a new row to the grid by using the last empty row(#lastRow+1) (The one that comes up if you set AllowNew = true). 3. To do that I click on the row and SetEnableValues gets called. 4. Here e.Row still is 1. And since in row one colmumn 5 is 'Y' e.EnableValue gets set to false. I hope you can see the problem and I hope you might be able to help me... Thanks Martin

Loader.
Live Chat Icon For mobile
Up arrow icon