I try add sourse to DropDownList, but this dosn't return result...
Object r is List<CultureInfo>
DataTable dtLangs =
new
DataTable();
dtLangs.Columns.AddRange(
new
DataColumn[] {
new
DataColumn(
"ID"
),
new
DataColumn(
"Name"
)} );
AppSetting.Instance.Languages.Select( r => dtLangs.Rows.Add(r.TwoLetterISOLanguageName, r.DisplayName));
this
.ddlLanguage.DataSource = dtLangs;
this
.ddlLanguage.DisplayMember =
"Name"
;
this
.ddlLanguage.ValueMember =
"ID"
;