hi i have created on e dataGrid at design time and create its column at runtime as
<sdk:datagrid canusersortcolumns="True" autogeneratecolumns="False" grid.row="2" horizontalalignment="Left" margin="18,0,0,0" name="grd_Enterprise_summary" verticalalignment="Top" xmlns:sdk="#unknown">
</sdk:datagrid>
private DataGridColumn CreateColumn(string property)
{
return new DataGridTextColumn()
{
CanUserSort = true,
Header = property,
SortMemberPath = property,
IsReadOnly = true,
Binding = new Binding()
{
Converter = _rowIndexConverter,
ConverterParameter = property
}
};
}
Datagrid binding is done as
Dictionary<string,> firstRow1 = new Dictionary<string,>();
this.AddColumnToGrid(grd_Enterprise_summary, (IEnumerable<dictionary><string,>>)record1);
grd_Enterprise_summary.ItemsSource = record1;</dictionary>
when i click on header sorting is not performed .
What should i do for this ?
thanks in advance