I am creating a gridview, columns and rows dynamically using .Rows.AddNew();. My problem is when I try to set a row enable to false I get a null ref when trying to set the .VisualElement.Enabled = false;. I think the property is null because the grid does not created the visualelement until run time (I think i read that somewhere). However, that seems to be the only way to set the enable property. If this is true, how can I set enable false for a row before the grid is rendered? I have tried using the RowFormatting event but it fires everytime the row has focus. The user needs to be able to change the stated of the property once the grid is rendered, but that calls the RowFormatting event and set it back to false. I only want to set the enable property when loading the grid or by firing event to enable it later.
Stephen.
Stephen.