Labels

Monday, August 20, 2007

Using Enum as DataSource for DataList

namespace Pfx.SmartTools.Word.Common
{
public enum NewWP
{
True, False, NotExist
}
}

DropDownList1.DataSource = Enum.GetNames(GetType(NewWP))
DropDownList1.DataBind()

Thanks & Regards,

Arun Manglick || Tech Lead

No comments:

Post a Comment