Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
195
How to display a cell's value in a TextBlock control after adding the TextBlock control to the Cell's control template?
posted

Hi,

I am using Silverlight 4 in C# with Infragistics' web client package. What I am trying to do is to create a control template for a cell's style in a XamGrid control. Inside the control template, there is a TextBlock control which is used to display the cell's value.

I have successfully adding a TextBlock in the control template. However, when I was trying to assign the cell's value to the Text property of the TextBlock control by setting Text={TemplateBinding Cell.Value}, I got an error saying Value was nout found. If I set Text={TemplateBinding Content}, there was nothing displayed in the TextBlock control.

I am wondering how to bind the Text property of the TextBlock control to the cell's value.

Thank you for your response.

Best,

Frank

Parents Reply Children
No Data