Search code examples
c#datagridsilverlight-4.0expandersplitter

Insert a splitter (or expander) inside a gridview


I'm using Silverlight 4's gridview in my page, and I would like to have collapsible columns (to hide some rarely needed information). I had a look to DataGridTemplateColumn but it doesn't seem to allow me to do that. Googleing on this problem didn't help me either. (the only information I found is to set the visibility and/or the width of the columns in the code, but thatdoesn't solve my problem of inserting the splitter/expander).

Is there a way to do that ?

Thanks in advance !


Solution

  • Haver you had a look at the silverlight toolkit yet? They have a nice expander in the online demo that may do what you're looking for.