Nate Bross
Well-known member
Is there a large performance hit to databind a drop down list to an object with lots of unused properties?
For example:
However, lets imagine that in my example, there are many more extra properties than just six unused in this list.
For example:
C#:
class myClass
{
propValue
propData
prop1
prop2
prop3
prop4
prop5
prop6
}
...
ddlList.Datasource = new myClass(....);
ddlList.DataTextField = "propData";
ddlList.DataValueField = "propValue";
ddlList.DataBind();
However, lets imagine that in my example, there are many more extra properties than just six unused in this list.