I’m trying to create a custom class that is based off of an XML file (using xsd.exe). The end goal of this class is to bind it to a UI element (probably a gridview or something like that – I haven’t decided yet). Are there any interfaces that I need to be sure to implement in order to do this? I would think IEnumerable would be a key one, but I can’t be sure.
Any thoughts?
edit : Sorry about that, the target deployment is ASP.NET 3.5
You don’t need any speciall interfaces for your object. In ASP.NET you don’t have two directional binding.
You want to bind you control to a list implements IEnumerable.