View Complete Post
I have a requirement to add filters to a datagrid. I have placed the filter controls in the headertemplate of a datagrid. How can I access these controls in code behind? I need to set itemsource for the listbox placed in header template through code
behind on the basis of certain selections by user. Following is my data template(resource template) for header column.
<StackPanel Name="spResource" FlowDirection="LeftToRight" Orientation="
I am trying to create a datagrid with fixed header and I was using the CSS way to implement this using:
However, this only works in IE and not in FF. The other alternative that I found was to create the header in a separate table and to use scrollbars on the datagrid. But, I want to stick to the first option and want to make it work on both browsers. The problem is I don't know how. Any inputs on this is greatly appriciated.
Basically, I would like to make "Property Editor" using Dictionary and DataGrid by storeing "properties" (key&value pairs) into Dictionary and DataGrid to display and edit.
I was able to successfully bind using below code.
It displays Key&Value pairs fine in the DataGrid but it won't allow me to edit the Value.
It says, "EditItem is not allowed for this view"
How can I do this using DataGrid and Dictionary?
Is there better way to make property editor with FLEXIBLE number of properties?
I emphasized "flexible" because the property entries/definition can frequently change and I thought Dictionary was perfect for this.
Thanks a lot!