DataGridView Question
-
I have a dataGridView and just three rows. I wrote dataGrid_RowEnter and dataGrid_RowLeave event. Basically i am changing the color to red of the row in the Row_Enter event and in the RowLeave and changing the color back to no color. I have also button in the same form. I have not written any thing on the button. but even if i click the button RowLeave event is firing and changing back my color. Is there a way around it. Is this the normal behavior. Thanks kal
-
I have a dataGridView and just three rows. I wrote dataGrid_RowEnter and dataGrid_RowLeave event. Basically i am changing the color to red of the row in the Row_Enter event and in the RowLeave and changing the color back to no color. I have also button in the same form. I have not written any thing on the button. but even if i click the button RowLeave event is firing and changing back my color. Is there a way around it. Is this the normal behavior. Thanks kal
If your button is not within the row then yes it is normal behavior, you have left the row to click on the button hence the RowLeave event being fired.
only two letters away from being an asset