//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] [Web开发]一个关于ASP运行时间计算的代码 [Web开发]ASP:检测含有中文字符串的实际长度 [Web开发]asp 中英文字符长度检测判断函数 [Web开发]安全维护 IIS asp 站点的高级技巧 [Access]ASP&SQL让select查询结果随机排序的实现方法 [Web开发]ASP字符串截取函数 [Web开发][asp]关键词只替换一次的写法 [Web开发]Asp无组件生成缩略图方法详解 [Web开发]asp编程中优化数据库方法详解 [Web开发]三种方法教你asp如何去除html标记
|