1
clic en el botón "Inicio" y seleccione " Microsoft Visual Studio. NET . "
2 Haga clic en " Abrir". Seleccione el Visual Basic para . NET programa en el que desea agregar una nueva fila a un control " UltraWebGrid " .
3
Agregue el siguiente código después de la línea "Public Class UltraWebGrid " en su programa :
UltraWebGrid1 dévil como Infragistics.WebUI.UltraWebGrid.UltraWebGrid
células Dim
( 3 ) As Object
células
( 0 ) = " Cell1 "
< p > células ( 1 ) = " Cell2 "
células
( 2 ) = " Cell3 "
UltraWebGrid1.DisplayLayout.AddNewBox.Hidden = False
UltraWebGrid1.DisplayLayout.AllowAddNewDefault = = Color.Red
UltraWebGrid1.Rows.Add (New Infragistics.WebUI.UltraWebGrid.UltraGridRow (células ))
UltraWebGrid1.Rows.Add (New Infragistics.WebUI.UltraWebGrid.UltraGridRow (células ))
UltraWebGrid1.Rows.Add (New Infragistics.WebUI.UltraWebGrid.UltraGridRow (células ))
Me.Controls.Add ( UltraWebGrid1 )
4
Haga clic en " archivo " y luego " Guardar" para agregar la fila al control " UltraWebGrid " en su programa.