i adding columns datagrid , displaying in application
// create datagrid mytable = new datatable("my table"); // add columns mytable.columns.add(my_localization.cultures.resources.userid); mytable.columns.add(my_localization.cultures.resources.name); // fill data datarow dr = mytable.newrow(); dr[0] = userid; dr[1] = name; // add itemsource detailsdlg.itemssource = mytable.asdataview(); now possible change columns names when localization languages changes on fly? since columns added in code, not able change column headers. if put columns in wpf, not able add data before assigning itemsource. how solve this?
assuming binding datagrid code behind , not using mvvm.
you can change desire column in code behind, this:
detailsdlg.columns[0].header = "new column name";
Comments
Post a Comment