Dim cellules (3) comme objet
les cellules (0) = "Cell1"
les cellules (1) = "Cell2"
les cellules (2) = "Cell3"
UltraWebGrid1.DisplayLayout.AddNewBox.Hidden = Faux
UltraWebGrid1.DisplayLayout.AllowAddNewDefault = Infragistics.WebUI.UltraWebGrid.AllowAddNew.Yes
UltraWebGrid1.DisplayLayout.AddNewBox.Style.BackColor = Color.Red
UltraWebGrid1.Rows.Add (New Infragistics.WebUI.UltraWebGrid.UltraGridRow (cellules))
UltraWebGrid1.Rows.Add (New Infragistics.WebUI.UltraWebGrid.UltraGridRow (cellules))
UltraWebGrid1.Rows.Add (New Infragistics.WebUI.UltraWebGrid.UltraGridRow (cellules))
Me.Controls.Add (UltraWebGrid1)