惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

B
Blog RSS Feed
Martin Fowler
Martin Fowler
爱范儿
爱范儿
IT之家
IT之家
Last Week in AI
Last Week in AI
A
About on SuperTechFans
Google DeepMind News
Google DeepMind News
阮一峰的网络日志
阮一峰的网络日志
V
V2EX
aimingoo的专栏
aimingoo的专栏
G
Google Developers Blog
J
Java Code Geeks
Microsoft Azure Blog
Microsoft Azure Blog
美团技术团队
The Cloudflare Blog
MyScale Blog
MyScale Blog
T
The Blog of Author Tim Ferriss
Hugging Face - Blog
Hugging Face - Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
云风的 BLOG
云风的 BLOG
Y
Y Combinator Blog
The GitHub Blog
The GitHub Blog
腾讯CDC
Microsoft Security Blog
Microsoft Security Blog

博客园 - 零点时刻

一千万条数据数据搜索问题! 嵌套DataGrid,中如何添加删除事件?(望能暂时放一下,谢谢了!) 计算机类资源网:http://www.3human.com/ 互动形式 用户可以上传资料 今天心情有点郁闷! 动态加载用户控件的组件!(二) (转) 动态加载用户控件的组件!(四) Asp.Net Forums研究文章集合(收藏) 【MasterPages实用技巧】为模板增加前端控制①——自动生成页面标题 【MasterPages实用技巧】使用MasterPages实现Web窗体模板 CS研究笔记-缓存 (转) Community Server专题四:HttpHandler Community Server专题八:MemberRole之Membership (转) 主板故障的分析和诊断 c# arraylist functions http://www.metabuilders.com/ 的MasterPages 控件可以多重嵌套 动态加载用户控件的组件!(转) 自定义控件主题使用研究 MasterPages(转载) 我的野外拍摄
嵌套DataGrid,中如何添加删除事件?
零点时刻 · 2007-04-06 · via 博客园 - 零点时刻

<%# Container.ItemIndex + 1%><%#databinder.eval(container.dataitem,"name")%> <%# Container.ItemIndex + 1%><%#databinder.eval(container.dataitem,"name")%> <%# Container.ItemIndex + 1%><%#databinder.eval(container.dataitem,"name")%>  我在DataGrid1的绑定列中嵌套了DataGrid2,然后在DataGrid2中增加删除事件,请问高手,这个事件应该怎么写?如何去获取呢?
请各位高手指教。

    <asp:DataGrid id="DataGrid1" runat="server" Width="688px" AutoGenerateColumns="False" AllowPaging="True"
        DataKeyField
="projectid">
        
<Columns>
            
<asp:BoundColumn DataField="name" HeaderText="项目名称"></asp:BoundColumn>
            
<asp:TemplateColumn HeaderText="任务">
                
<ItemTemplate>
                    
<asp:Label Runat="server" ID="lbl_project" Visible="False" ForeColor="#ff0033"></asp:Label>
                    
<asp:DataGrid id="DataGrid2" runat="server" Width="100%" AutoGenerateColumns="False" AllowPaging="false"
                        ShowHeader
="False">
                        
<Columns>
                            
<asp:TemplateColumn>
                                
<ItemTemplate>
                                    
<%# Container.ItemIndex + 1%>
                                
</ItemTemplate>
                            
</asp:TemplateColumn>
                            
<asp:TemplateColumn>
                                
<ItemTemplate>
                                    
<asp:HyperLink Runat="server" ID="title">    
                                        
<%#DataBinder.Eval(Container.DataItem,"name")%>
                                    
</asp:HyperLink>
                                    
<asp:Label Runat="server" ID="Label1" Visible="false" text='<%#DataBinder.Eval(Container.DataItem,"id")%>'></asp:Label>

                                
</ItemTemplate>
                            
</asp:TemplateColumn>
                            
<asp:TemplateColumn>
                                
<ItemTemplate>
                                
</ItemTemplate>
                            
</asp:TemplateColumn>
                        
</Columns>
                    
</asp:DataGrid>
                
</ItemTemplate>
            
</asp:TemplateColumn>
        
</Columns>
        
<PagerStyle Mode="NumericPages"></PagerStyle>
    
</asp:DataGrid>

<%# Container.ItemIndex + 1%><%#databinder.eval(container.dataitem,"name")%> <%# Container.ItemIndex + 1%><%#databinder.eval(container.dataitem,"name")%>