DataGridTemplateColumn

Nov 15, 2010 at 3:33 PM

Hello,

I think you should add DataGridTemplateColumn support.

Maybe an extension for DataGridTemplateColumn would be nice where you can set the Binding.

Coordinator
Nov 16, 2010 at 8:28 AM

this is at Feature list:

http://datagridriaex4sl.codeplex.com/Thread/View.aspx?ThreadId=231351

 

but now i do not now how to implement that, because i do not now how to get Parent from DataGridTemplateColumn or DataGridColumn.

 

i think mechanism must work like:

DataGridColumn attached property => * (here we have DataGridColumn, get his Parent => means get DataGrid) => * get ItemsSource and parse needed property.

* problem part of code

* implemented part

Nov 16, 2010 at 12:08 PM

you already know how to get metadata from a binding path.

Now, if there's another extension for each column like you did for the datagrid but now column oriented or better "object" oriented.  By doing that we can specify the path to get the field and its associated metadata.

I think this is a simple way to use metadata where you want...

 

Example:

<TextBox>

<TextBox.metadataExtension get="path to the field" set="Text"/>

</TextBox>

Coordinator
Nov 16, 2010 at 1:37 PM

not so easy as you think.
I did not just write about the parent class.

data are taken from ItemsSourсe parent, but in order to get to the parent class need to know how, I do not yet know how to do it.

See details above.

Coordinator
Nov 21, 2010 at 8:03 PM

so, i found simple solution, soon i upload changes.

regards.

Nov 22, 2010 at 8:26 PM

You can add the "displayname" as a parameter. By doing this you allow to put the description or any other attribute...

Coordinator
Nov 22, 2010 at 10:01 PM

yes, you right, thanks for idea.

i think about that.