I've a master table and 2 details table in my grid. In one of the detailtables, I want to disable the expand grid option(not show the details table) based on the value of grid bound column. In the following, when the detailtable questions is binded, I want to check the value of the column "Type", if it's text box, I want to disable the expand column button. Could someone tell me how to do this?
<DetailTables>
<telerik:GridTableView DataKeyNames="QuestionID" Name="Questions" CommandItemDisplay="Top" Width="100%">
<Columns>
<telerik:GridBoundColumn DataField="QuestionID" HeaderText="ID" UniqueName="QuestionID" Display="false" ReadOnly="true" />
<telerik:GridBoundColumn DataField="Type" HeaderText="Type" UniqueName="Type" />
</Columns>
</telerik:GridTableView>
</DetailTables>
<DetailTables>
<telerik:GridTableView DataKeyNames="QuestionID" Name="Questions" CommandItemDisplay="Top" Width="100%">
<Columns>
<telerik:GridBoundColumn DataField="QuestionID" HeaderText="ID" UniqueName="QuestionID" Display="false" ReadOnly="true" />
<telerik:GridBoundColumn DataField="Type" HeaderText="Type" UniqueName="Type" />
</Columns>
</telerik:GridTableView>
</DetailTables>