/// <summary> /// Binds the data. /// </summary> private void BindData() { DataTable dt = new DataTable(); dt.Columns.AddRange(new DataColumn[] { new DataColumn("Key", typeof(string)), new DataColumn("Value", typeof(string)) }); if (MetaObject != null) { MetaStringDictionary dict = (MetaStringDictionary)MetaObject.GetStringDictionary(MetaField); if (dict != null) { foreach (string key in dict.Keys) { DataRow row = dt.NewRow(); row["Key"] = key; row["Value"] = dict[key]; dt.Rows.Add(row); } } } DictionaryItemsTable = dt; this.ItemsGrid.DataSource = dt; this.ItemsGrid.DataBind(); }