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

推荐订阅源

MyScale Blog
MyScale Blog
J
Java Code Geeks
Vercel News
Vercel News
A
About on SuperTechFans
G
Google Developers Blog
C
Check Point Blog
腾讯CDC
N
Netflix TechBlog - Medium
博客园 - 司徒正美
S
SegmentFault 最新的问题
D
DataBreaches.Net
博客园_首页
美团技术团队
Stack Overflow Blog
Stack Overflow Blog
博客园 - 聂微东
量子位
雷峰网
雷峰网
IT之家
IT之家
小众软件
小众软件
Blog — PlanetScale
Blog — PlanetScale
博客园 - 三生石上(FineUI控件)
H
Help Net Security
宝玉的分享
宝玉的分享
博客园 - 叶小钗

博客园 - 零点时刻

一千万条数据数据搜索问题! 嵌套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 博客园 - 零点时刻

我在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>