Hyperlink in Group Header of Data Grid
hi all,
have datagrid in silverlight application binded row group header.what wanted add hyperlink in group header beside group header text binded now...
faced problem before???
thanks,
prasant
have datagrid in silverlight application binded row group header.what wanted add hyperlink in group header beside group header text binded now...
faced problem before???
thanks,
prasant
hi prasant,
to add hyperlinkbutton datagrid groupheader, can edit style of groupheader below
<datagrid:datagrid x:name="peoplelist"> <datagrid:datagrid.rowgroupheaderstyles> <!-- style groups @ top level --> <style targettype="datagrid:datagridrowgroupheader"> <setter property="template"> <setter.value> <controltemplate targettype="datagrid:datagridrowgroupheader"> <stackpanel orientation="horizontal"> <textblock text="{binding name}"/> <hyperlinkbutton content="xxx" /> </stackpanel> </controltemplate> </setter.value> </setter> </style> <!-- style second groups level --> <style targettype="datagrid:datagridrowgroupheader"> <setter property="background" value="lightblue" /> </style> </datagrid:datagrid.rowgroupheaderstyles> </datagrid:datagrid>
one thing don't quite understand kind of datasource want bind hyperlinkbutton. please explain requirements in details, find solution you.
best regards,
Silverlight > Programming Silverlight with .NET – General
Comments
Post a Comment