You can set up bindings dynamically. Something like this (this code creates grid view columns and assigns dynamic bindings) private void AddColumn(GridView view, Field fld) { GridViewColumn col = new GridViewColumn(); col. Header = fld.
Label; Binding bnd = new Binding(); switch (fld. FieldType) { case FieldType. DateTime: bnd.
Converter = new DateTimeToDateStringConverter(); break; // or some other converters } bnd. Path = new PropertyPath(string. Format("Fields{0}", _table.
_fields. IndexOf(fld))); // the string matches what you would use in XAML col. DisplayMemberBinding = bnd; view.Columns.
Add(col); }.
I am implementing the WPF DataGrid (very new to WPF). I followed tutorials that showed how to bind the ComboBoxColumn using staticresources. However, the databinding for a few columns in my datagrid will not be known until runtime.
Because of this, I can't bind them with the staticresource. Is there any other way to databind the ComboBoxColumns in a DataGrid? In ASP.NET, I know we had the rowdatabound code where we could do this and dynamically create the contents of the columns.
But, in WPF, it looks like everything is done through resources. How can you databind using dynamic resources in the DataGrid?
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.