if (cellType == DataControlCellType.Header)
{
if (HeaderText.Length > 0 && sortingEnabled && SortExpression.Length > 0)
- cell.Controls.Add (new DataControlButton (control, HeaderText, HeaderImageUrl, DataControlCommands.SortCommandName, SortExpression, true));
+ cell.Controls.Add ((Control) DataControlButton.CreateButton (String.IsNullOrEmpty (HeaderImageUrl) ? ButtonType.Link : ButtonType.Image, control, HeaderText, HeaderImageUrl, DataControlCommands.SortCommandName, SortExpression, true));
else if (HeaderImageUrl.Length > 0) {
Image image = new Image ();
image.ImageUrl = HeaderImageUrl;
return new System.NotSupportedException ("The property '" + propName + "' is not supported in " + GetType().Name);
}
+ internal bool ControlStyleCreated { get { return controlStyle != null; } }
+
+ internal bool HeaderStyleCreated { get { return headerStyle != null; } }
+
+ internal bool FooterStyleCreated { get { return footerStyle != null; } }
+
+ internal bool ItemStyleCreated { get { return itemStyle != null; } }
+
[MonoTODO ("Render this")]
[DefaultValueAttribute ("")]
[LocalizableAttribute (true)]