How i access DataGrid(DataGridTemplate) in xaml.cs

Posted by mobeen-bhatti on Stack Overflow See other posts from Stack Overflow or by mobeen-bhatti
Published on 2010-05-25T06:41:58Z Indexed on 2010/05/25 6:51 UTC
Read the original article Hit count: 228

Filed under:

Hi,

 <dg:DataGridTemplateColumn Header="Alerts">
                    <dg:DataGridTemplateColumn.CellTemplate>
                        <DataTemplate>
                            <TextBlock></TextBlock>
                        </DataTemplate>
                    </dg:DataGridTemplateColumn.CellTemplate>                        
            </dg:DataGridTemplateColumn>

How can i access TextBlock in xaml.cs. like this TextBlock.Text="HelloMoto" please help me. thanks in advance

Mobeen

© Stack Overflow or respective owner

Related posts about wpfdatagrid