This is a migrated thread and some comments may be shown as answers.

[Solved] How to find button control in Datatemplate of Gidview

0 Answers 95 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Mahendra
Top achievements
Rank 1
Mahendra asked on 16 Jun 2011, 06:09 AM
Hello,

  There is check box out side the Grid view. And in Grid view I have Datatemplate with Button like below

              <telerik:GridViewDataColumn>

                    <telerik:GridViewDataColumn.CellTemplate>

                        <DataTemplate>

                            <StackPanel>

                                <Button x:Name="btnAdd>

                                </Button>

                            </StackPanel>

                        </DataTemplate>

                    </telerik:GridViewDataColumn.CellTemplate>

                </telerik:GridViewDataColumn>

 When i click on Check box I want to Disable Button (btnAdd). So I am thinking to find that button and make is disable. My check box is not in Grid view its outside.


Please give solution

Thanks,
Mahendra

Tags
GridView
Asked by
Mahendra
Top achievements
Rank 1
Share this question
or