How to add an row to a Infragistics Ultra Grid

Posted on 2009-02-10
Last Modified: 2013-11-15
How can i add a row to the SSUltraGrid with the data i want to

Couldnt find a way to do this, i'm using visual basic 6 btw

i want to add some data in the grid if the recordset wich populate the grid is empty
Private Sub GridIrmao_InitializeLayout(ByVal Context As UltraGrid.Constants_Context, ByVal Layout As UltraGrid.SSLayout)

    GridIrmao.Bands(0).Columns.Add ("Sim/Não")

    GridIrmao.Bands(0).Columns(0).Activation = ssActivationActivateNoEdit

    GridIrmao.Bands(0).Columns(1).Activation = ssActivationActivateNoEdit

    GridIrmao.Bands(0).Columns(2).Activation = ssActivationActivateNoEdit

    GridIrmao.Override.CellClickAction = ssClickActionCellSelect

End Sub

Private Sub GridIrmao_InitializeRow(ByVal Context As UltraGrid.Constants_Context, ByVal Row As UltraGrid.SSRow, ByVal ReInitialize As Boolean)

    GridIrmao.Bands(0).Columns("Sim/Não").Style = ssStyleCheckBox

    GridIrmao.Bands(0).Columns("Sim/Não").dataType = ssDataTypeBoolean

End Sub

Open in new window

Question by:Shidartha
    1 Comment

    Accepted Solution

    i did a new rs to populate the grid as i wanted


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Suggested Solutions

    When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
    I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
    Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
    The viewer will learn how to use NetBeans IDE 8.0 for Windows to connect to a MySQL database. Open Services Panel: Create a new connection using New Connection Wizard: Create a test database called eetutorial: Create a new test tabel called ee…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now