The "UltraWebGrid" control is a Microsoft .NET Framework component for the Visual Studio software development system. It allows programmers to access the Columns and Rows collections for the use on Windows Forms within an "ASP.NET" Web application. The properties of "UltraWebGrid" control contain the objects that are needed to define behaviour and appearance characteristics for the Web forms. "AddNewBox" on the Windows Forms includes the button for adding rows in the "UltraWebGrid." By using the UltraWebGrid control, programmers can speed up the creation of online forms in Web applications.
- Skill level:
- Moderately Easy
Click the "Start" button, and then select "Microsoft Visual Studio .NET."
Click "Open." Select the Visual Basic for .NET program in which you want to add a new row to "UltraWebGrid" control.
Add the following code after the "Public Class UltraWebGrid" line in your program:
Dim UltraWebGrid1 As Infragistics.WebUI.UltraWebGrid.UltraWebGrid
Dim cells(3) As Object cells(0) = "Cell1" cells(1) = "Cell2" cells(2) = "Cell3" UltraWebGrid1.DisplayLayout.AddNewBox.Hidden = False UltraWebGrid1.DisplayLayout.AllowAddNewDefault = Infragistics.WebUI.UltraWebGrid.AllowAddNew.Yes UltraWebGrid1.DisplayLayout.AddNewBox.Style.BackColor = Color.Red UltraWebGrid1.Rows.Add(New Infragistics.WebUI.UltraWebGrid.UltraGridRow(cells)) UltraWebGrid1.Rows.Add(New Infragistics.WebUI.UltraWebGrid.UltraGridRow(cells)) UltraWebGrid1.Rows.Add(New Infragistics.WebUI.UltraWebGrid.UltraGridRow(cells)) Me.Controls.Add(UltraWebGrid1)
Click "File" followed by "Save" to add the row to the "UltraWebGrid" control in your program.
- 20 of the funniest online reviews ever
- 14 Biggest lies people tell in online dating sites
- Hilarious things Google thinks you're trying to search for