Sorry,
I was mistaken in the title, it is SfDataGrid GridMultiColumnDropDownList Auto Complete doesn't works, here a sample attached.
Regards
public static ObservableCollection<dynamic> ToDynamic(this DataTable dt)
{
var dynamicDt = new ObservableCollection<dynamic>();
foreach (System.Data.DataRow row in dt.Rows)
{
dynamic dyn = new ExpandoObject();
dynamicDt.Add(dyn);
//Converting the DataTable collcetion in Dynamic collection
foreach (System.Data.DataColumn column in dt.Columns)
{
var dic = (IDictionary<string, object>)dyn;
dic[column.ColumnName] = row[column];
}
}
return dynamicDt;
}
. . . .
EmployeeCollection = DataTableExtensions.ToDynamic(ds.Tables["Table1"]);
dataGrid.ItemsSource = EmployeeCollection; |