Hi,
MY XML:
<ColProperty DBColumn="System" DisplayInGrid=" Mode" IsDisplay="true" IsSelecte="true" SelectedPosition="0" Coordinate="-1" IsClassifyFiled="false" />
The attribute Coordinate contain values (-1 till 4) when 0 till 4 is represented by Enum :
public enum COORD_SYSTEM
{
[XmlEnumAttribute("0")]
COORD_SYSTEM_GEO = 0, // Display : GEO
[XmlEnumAttribute("1")]
COORD_SYSTEM_UTM = 1, // Display : UTM
[XmlEnumAttribute("2")]
COORD_SYSTEM_RSO = 2, // Display : RSO
[XmlEnumAttribute("3")]
COORD_SYSTEM_GEO_LEGACY = 3, // Display : GEO Legacy
[XmlEnumAttribute("4")]
COORD_SYSTEM_MRG = 4 // Display : MGR
}My XML is serialize and connect to DataGridView.
I want that when there is (-1) value in the XML attribute “Coordinate”, My cell in the DataGridView will be empty.
Is it possible?
I can't change the Enum...