Visual Basic/VB >> Create Bands Programmatically in a Hierarchical GridView Control
by Chris » Wed, 31 Jan 2007 16:22:41 GMT
I keep my data in an array and using TextMatrix property for filling
the control cells. I am not using recordset.
Is there any way for creating bands programmatically in a Hierarchical
GridView Control for expanding and collapsing rows ?
Thanks a lot in advance.
Visual Basic/VB >> RE: Create Bands Programmatically in a Hierarchical GridView Control
by SXJmYW4gUy4gRmF6bGk » Wed, 31 Jan 2007 20:25:00 GMT
Use
hflxgrid.BackColorBand(ctr) = vbYellow
to colour the rows-bands.
determine even-odd row and colour in different colours.
--
IRFAN.
Visual Basic/VB >> Create Bands Programmatically in a Hierarchical GridView Control
by Jeff Johnson » Wed, 31 Jan 2007 22:02:15 GMT
No. In a burst of shortsightedness, MS only allowed banding when the control
was bound to a data source.
Similar Threads
1. Using Bands Manually in Hierarchical Flexgrid - Visual Basic/VB
2. I need to create multiple bands in grid
I am using ultra grid of infragestic tool. I need to make two bands in
it,,,,,, the main band(0) is a view (multiple table) where band(1) is a
single table having foriegn key related to band(1). can any body tell
me what should be the solution...
thanx
3. How to create Tool Band
4. How to deal with controls created programmatically
Hi,
I have an application that reads information from a database and depending
on that information creates controls on a form. Depending on where the user
is at in a process there may be one item or many items. I create check
boxes, one for each entry I get back from the database.
The code therefore does stuff like this:
cb = New CheckBox
tpMain.Controls.Add(cb)
x = 50 : y += 25
cb.Left = x
cb.Top = y
cb.Text = CStr(dr("DocumentName"))
cb.Tag = CStr(dr("TemplatePath"))
cb.Name = "chkS" & CStr(dr("StageDocBelongsTo")) & "D" &
CStr(dr("DocumentNumber")) 'ie chkS1D1 Stage 1 Doc 1
Which works fine, but later on I want to reference these created controls
and say change the tag or other properties.
Because the controls don't exist until they are created whilst the program
is running, when I write the code to modify these properties the VB Parser
quite correctly states that the object has not been declared and won't let
me compile the code.
Is there a way that you can write code that references controls that don't
exist until the program is running. The only way I can see to do this is to
put every possible control that might be needed and hide it on the form and
then rather than creating the controls programmatically, just unhide them
and move them to the required location on the form. Which will work, but
kind of defeats what I am trying to do??
Any help appreciated.
Siv
5. Remove multiple programmatically created controls - VB.Net
6. Create controls programmatically
7. GridView Control - no rows until I add the control
8. creating array of controls programmatically