Im using a datagridview with autogeneratecolumns on. I can use something like this to get a handler to a particular column:
public int MyProperty { get; set;}
....
myDataGridView.Columns["MyProperty"];
Which is not optimal (it means that if I change the name of MyProperty I need to change all the "MyProperty" strings in the code). Is there a way to overcome this problem? Can I, for example, use an attribute to make the column identifier independent of the property name (without resorting to manual columns creation)?