Hi I have a problem with the CellControlAttached event. The problem is that this event doesn't fire with a column template that I have created. Can anybody provide an example on how to use this event?
Thank you in advance
Is your TemplateColumn bound or unbound? There was an issue identified with The CellControlAttached not being raised for unbound TemplateColumn cells. Is this your case?
The template column is bound, but the event don't fired.
If you want I send you an example ?
Thanks
Ah, ok.
Currently there isn't another way to achieve this until the SR comes out. However, it should be released within the next week or so.
-SteveZ
Ok thanks Stephen, I think I did not say all !
We have the datatemplate inside a resourse dictionaty that is in a silverlight class library in another pakage.
We have added the reference to this class library and the using to our main page but we cannot catch the button click event anyhow. Actually we are able to do it with the cell clicked event but is not what we want because the event is raised everytime we click on a cell.
Thank you again for your support.
Hi Sergio,
You can attach the event in the DataTemplate.
<DataTemplate>
<Button Click="MyButton_Clicked"/>
</DataTemplate>
Is there another event apart the cellattached event , that allows to access the cell content, after the xamwebgrid data have been loaded? We have a button inside the cell in a column template bound at run time. We are trying to catch the button click event but we could not so far.
Thank you for your attention.
Sergio
Hi Myles,
What are you trying to use the event for?
I generally recommend that instead of using that event, unless for Conditional styles, that you used a ValueConverter for the binding, which you're using.