第一列为模板列
数据和第三列一样
使用模板列是为了显示数据的层次结构
有没办法使模板列像第三列一样可以直接编辑啊?
使用两列的话 如果数据量大会影响速度
而且两列数据一样的 实在没必要显示两列
解决方案 »
- 菜鸟请教:关于字符串的截取问题,请指点……
- 163邮件中的收件人,抄 送 ,密 送 三者有什么区别?
- datalist 绑定的每行中的TextBox 里的值呀 请教一下
- 在C#,asp.net中插入access数据库表的问题
- 谁看过这本书《asp.net办公自动化系统开发实例导航〉?
- 一个关于动态改写xml属性的问题!!!急!!help!
- vs2008 在调试时,出现数据绑定混乱问题
- 各位老师,帮我吧,教教我如何用TreeView控件,最好有个实例,不胜感激!!!!
- 請問如何實現從數據庫中讀取Image數據?
- MVC+ef
- 我现利用Reflector反编译了一个c#写的程序,我现在想对其反编译后的源代码进行修改并重新封装成dll文件。还请各位大侠帮忙解决!!!
- jquery根据id查找数组。。。?
<igtbl:UltraWebGrid ID="gvList" runat="server" Width="100%" OnInitializeLayout="gvList_InitializeLayout"
DataKeyField="UniqueCode">
<Bands>
<igtbl:UltraGridBand DataKeyField="UniqueCode">
<Columns>
<igtbl:TemplatedColumn AllowUpdate="No" Key="TreeView_BillName" Width="250px">
<CellTemplate>
<nobr>
<%# ShowTreeImg(DataBinder.GetDataItem(Container)) %><asp:LinkButton ID="lbtnLink"
ForeColor='<%# GetTreeLinkColor(DataBinder.Eval(Container.DataItem, "BillType"))%>'
runat="server" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "UniqueCode") %>'
Text='<%# DataBinder.Eval(Container.DataItem, "BillName")%>' OnClick="lbtnLink_Click"></asp:LinkButton> </nobr>
</CellTemplate>
<CellStyle BackColor="#F4F4F4" Wrap="false" />
<Header Fixed="True">
</Header>
</igtbl:TemplatedColumn>
<igtbl:UltraGridColumn Key="BillNumber" BaseColumnName="BillNumber" DataType="String">
<Header Fixed="True" Caption="清单编号">
<RowLayoutColumnInfo OriginX="1"></RowLayoutColumnInfo>
</Header>
<Footer>
<RowLayoutColumnInfo OriginX="1"></RowLayoutColumnInfo>
</Footer>
</igtbl:UltraGridColumn>
<igtbl:UltraGridColumn Width="150px" Key="BillName" BaseColumnName="BillName" DataType="String">
<Header Caption="项目名称">
<RowLayoutColumnInfo OriginX="2"></RowLayoutColumnInfo>
</Header>
<Footer>
<RowLayoutColumnInfo OriginX="2"></RowLayoutColumnInfo>
</Footer>
</igtbl:UltraGridColumn>
</Columns>
<AddNewRow Visible="NotSet" View="NotSet">
</AddNewRow>
</igtbl:UltraGridBand>
</Bands>
<DisplayLayout AllowSortingDefault="No">
<FrameStyle Height="100%">
</FrameStyle>
<ClientSideEvents AfterRowUpdateHandler="gvList_AfterRowUpdateHandler_Template" />
</DisplayLayout>
</igtbl:UltraWebGrid>
[/code]