|
//on server side if the the page is with flow-layout.
this.ID + "_Headers" + @".style.left = " + this.ID + @"_div.offsetLeft;
" +
this.ID + "_Headers" + @".style.top = " + this.ID + @"_div.offsetTop;
" +
this.ID + "_Headers" + @".style.position = ''''absolute'''';
</script>";
Page.RegisterStartupScript("dummyKey" + this.ID, adjustWidthScript);
//output.Write(adjustWidthScript);
}
Height = tempHeight;
Style["TABLE-LAYOUT"] = tempTableStyle;
}
}
}
protected override void OnInit(EventArgs e)
{
if (0 == Width.Value) Width = new Unit("400px");
if (0 == Height.Value) Height = new Unit("200px");
//Transparent header is not allowed.
if (HeaderStyle.BackColor.IsEmpty)
{
HeaderStyle.BackColor = Color.White;
}
//Transparent pager is not allowed.
if (PagerStyle.BackColor.IsEmpty)
{
PagerStyle.BackColor = Color.White;
}
base.OnInit (e);
}
[Browsable(false)]
public override bool ShowHeader
{
get
{
return true;
}
set
{
if (false == value)
throw new InvalidOperationException("Use the original DataGrid to set ShowHeaders to false.");
}
}
}
}
上一页 [1] [2] [3] [4] [5] |