?
Solved

How to add an row to a Infragistics Ultra Grid

Posted on 2009-02-10
1
Medium Priority
?
1,407 Views
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

0
Comment
Question by:Shidartha
1 Comment
 

Accepted Solution

by:
Shidartha earned 0 total points
ID: 23609904
i did a new rs to populate the grid as i wanted

closed
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
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…
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.
Suggested Courses

840 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