asp.net动态生成GridView表头
在gridView中表头是从数据库中查出来的在表头下方的数据也是从数据库中查出来的,要一一对应。哪位知道应该怎么做啊?
原材料耗用量
导体 导体屏蔽 绝缘 填充
型号 规格 数量 单价 金额 数量 单价 金额 数量 单价 金额 数量 单价 金额 材料成本
SDF 120*13 12 10 120 10 22 220 100 55 5500 100 8 800 6640
GridView合并表头多重表头无错完美版(以合并3列3行举例)
gridview多表头
protected void GridView1_OnRowCreated(object sender, GridViewRowEventArgs e)//表头数据
{
if (e.Row.RowType == DataControlRowType.Header)
{
TableCellCollection tcHeader = e.Row.Cells;
 
相关问答:
select top 12 * from Product where [id] not in (select top 12 [id] from Product)
这样可以分页,但是我在后面想加个条件
select top 12 * from Product where [id] not in (select top 12 [id] from Prod ......
我在后台调用JavaScript的时候,他是在后台把事件的代码执行一次后在执行JavaScript方法
有什么办法 在执行JavaScript方法的时候停住,在执行后面的代码
不太明白啊,说清楚点吧
就是执行后台代码的时候 ......
前几天有人问我多线程方面的东西,写了怎么久的程序,我一直用(.net 1.1)在asp.net一直没用过多线程的代码。
说实话,我一直不知道多线程在asp.net能做什么方面的应用。我现在程序都是 get post 提交参数,代码中向 ......
如下面的字符串:
abc-bdef-axdg,我只想取到第一个"-"的位置,该怎么写????
C# code:
string str = "abc-bdef-axdg";
Console.WriteLine(str.Substring(0, s ......