Please review the site disclaimer before downloading or using content found on this site
Written by: Steve Gray 1/29/2010 11:39 AM
It took me a bit to figure out how to allow a template column to be sortable at run time. The solution was to put a datafield in the GridColumn definition. It makes sense, a template column might have several controls or fields, how would it know which one to sort on?
<ComponentArt:GridColumn Width="220"
DataCellServerTemplateId="ItemNumberTemplate"
AllowSorting="True"
DataField="itemnmbr"
HeadingText="Item Number" />
0 comment(s) so far...