How to Add a New Row to UltraWebGrid

Written by alexander gokhfeld
  • Share
  • Tweet
  • Share
  • Pin
  • Email
How to Add a New Row to UltraWebGrid
UltraWebGrid control allows programmers to create online forms in Web applications. (Hemera Technologies/Photos.com/Getty Images)

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

Other People Are Reading

Instructions

  1. 1

    Click the "Start" button, and then select "Microsoft Visual Studio .NET."

  2. 2

    Click "Open." Select the Visual Basic for .NET program in which you want to add a new row to "UltraWebGrid" control.

  3. 3

    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)
    
  4. 4

    Click "File" followed by "Save" to add the row to the "UltraWebGrid" control in your program.

Don't Miss

Filter:
  • All types
  • Articles
  • Slideshows
  • Videos
Sort:
  • Most relevant
  • Most popular
  • Most recent

No articles available

No slideshows available

No videos available

By using the eHow.co.uk site, you consent to the use of cookies. For more information, please see our Cookie policy.