医药CRM系统开发

自已做医药CRM系统有四年了,终于可以算个产品了,努力市场化,今年重种将医药营销的理念加入CRM

导航

动态为datagrid增加控件

Posted on 2007-03-02 21:12  hhq80  阅读(153)  评论(0编辑  收藏  举报
Private Sub DataGrid1_ItemCreated(ByVal sender As Object, ByVal e As 
                    System.Web.UI.WebControls.DataGridItemEventArgs)  Handles DataGrid1.ItemCreated
    If (e.Item.ItemType = ListItemType.Footer) Then
        e.Item.Cells(2).Text = "Total "
        e.Item.Cells(2).HorizontalAlign = HorizontalAlign.Right
        Dim oTextbox As New TextBox
        oTextbox.Width = New Unit(100, UnitType.Pixel)
        oTextbox.Text = "90.3500"  'This can be changed to populate from some datasource.
        e.Item.Cells(3).Controls.Add(oTextbox)
    End If
End Sub