This problem messed with my mind. I had this going on in a dx:ASPxGridView...
</Columns>
<Templates>
<TitlePanel>
Hello There!
</TitlePanel>
<DetailRow>
<div>coming soon...</div>
</DetailRow>
</Templates>
<SettingsDetail IsDetailGrid="True" ShowDetailRow="True" AllowOnlyOneMasterRowExpanded="false" />
</dx:ASPxGridView>
The markup allowed me to make each row have a +/- control for expandable and collapsible content with "coming soon..." inside of it which shows in a row that appears below the row of data at hand, but what about the TitlePanel? I figured out that I could make it visible (from C#) like so:
MyGrid.SettingsText.Title;
And yet, I could not replace "Hello There!" from the C# side, try as I may, with this syntax even though everything I read online told me that this was the way to go.
MyGrid.SettingsText.Title = "foo";
The fix was to remove the TitlePanel tag outright from the markup and only have the C# stuff!
No comments:
Post a Comment