Forum  General Visual ...  Announce It! ( ...   6.4 beta 1 which is coming out soon has a ListView which can add controls as sub items
Previous Previous
 
Next Next
New Post 1/21/2010 8:16 AM
  glomax
100 posts
5th Level Poster






Re: 6.4 beta 1 which is coming out soon has a ListView which can add controls as sub items 

That is SWEET!  Now I will be able to put date pickers in my list views for one or two editable columns without having to resort to a data grid.  That made my day!


Greg Lomax - Gizmox MVP
 
New Post 1/21/2010 11:10 AM
  ori.cohen
4383 posts
1st Level Poster




Re: 6.4 beta 1 which is coming out soon has a ListView which can add controls as sub items 

Hello Mr. Lomax,

I believe a new world has opened up now with this breakthrough feature of the ListView control.
The options here are almost limitless.

You could for example use UserControls inside each cell of each column to create a completely flexible super dynamic and bound data structure with inner TreeViews, DateTimePickers, ListViews, CustomControls, ASP.NET wrapped controls etc.

Things will sure get exciting now...


Regards,

Ori Cohen
Support Manager, the Visual WebGui team

 
New Post 1/22/2010 12:34 AM
  Visualizer
665 posts
1st Level Poster




Re: 6.4 beta 1 which is coming out soon has a ListView which can add controls as sub items 

Wow wow wow, if it really works like you describe it will open a whole new world...

Can't wait to try this :)

 
New Post 1/23/2010 7:08 AM
  palli
11189 posts
1st Level Poster




Re: 6.4 beta 1 which is coming out soon has a ListView which can add controls as sub items 

Hi Tom,

I comletely agree with your last comment,

Interesting times ahead, big time

Palli

 


Páll Björnsson - Visual WebGui support team - Email: support@visualwebgui.com
 
New Post 3/1/2011 4:22 AM
  lmp014
83 posts
No Ranking


Re: 6.4 beta 1 which is coming out soon has a ListView which can add controls as sub items 

Hi Guy,

Yes this is a great feature adding many possibilities.

Find here after a sample to complement the link you supplied.

It's to show that you can even mix the controls between rows. I mean you don't need to have 1 COLUMN with a specific control, but thar even between rows you can change what control you place in.

It creates a listview with 2 Row composed of

Row 1 : A text Column, Button, Progressbar

Row 2 : A text Column, DatTimePicker, Button

Public Class Form1
    Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        ListView1.Columns.Add("Col1", 200, Gizmox.WebGUI.Forms.HorizontalAlignment.Center)

        Dim Hdr As Gizmox.WebGUI.Forms.ColumnHeader = New Gizmox.WebGUI.Forms.ColumnHeader
        Hdr.Type = Gizmox.WebGUI.Forms.ListViewColumnType.Control
        Hdr.Width = 100
        Hdr.PreferedItemHeight = 23
        ListView1.Columns.Add(Hdr)


        Dim Hdr2 As Gizmox.WebGUI.Forms.ColumnHeader = New Gizmox.WebGUI.Forms.ColumnHeader
        Hdr2.Type = Gizmox.WebGUI.Forms.ListViewColumnType.Control
        Hdr2.Width = 200
        Hdr2.PreferedItemHeight = 23
        ListView1.Columns.Add(Hdr2)

        Dim objButton As New Gizmox.WebGUI.Forms.Button()
        AddHandler objButton.Click, AddressOf onBtnClick
        objButton.Text = "Delete"
        objButton.Tag = "This is the Delete Tag Item01"

        Dim objProgress As New Gizmox.WebGUI.Forms.ProgressBar
        objProgress.Value = 50

        objProgress.Text = "ProgressBar"
        objProgress.Tag = "This is the ProgressBar Tag"

        Dim LVI As Gizmox.WebGUI.Forms.ListViewItem = New Gizmox.WebGUI.Forms.ListViewItem
        LVI.Text = "Item01"
        LVI.SubItems.Add(objButton)

        LVI.SubItems.Add(objProgress)
        ListView1.Items.Add(LVI)

        Dim LVI2 As Gizmox.WebGUI.Forms.ListViewItem = New Gizmox.WebGUI.Forms.ListViewItem
        LVI2.Text = "Item02"

        Dim objdatePicker As New Gizmox.WebGUI.Forms.DateTimePicker

        objdatePicker.Tag = objdatePicker

        Dim objButton2 As New Gizmox.WebGUI.Forms.Button()
        AddHandler objButton2.Click, AddressOf onBtnClick
        objButton2.Text = "Delete"
        objButton2.Tag = "This is the Delete Tag Item02"
        LVI2.SubItems.Add(objdatePicker)
        LVI2.SubItems.Add(objButton2)
        ListView1.Items.Add(LVI2)
    End Sub

    Sub onBtnClick(ByVal sender As Object, ByVal e As EventArgs)
        Dim PressedBtn As Gizmox.WebGUI.Forms.Button = DirectCast(sender, Gizmox.WebGUI.Forms.Button)
        MsgBox("Button has been pressed " & PressedBtn.Text & vbCrLf & vbCrLf & PressedBtn.Tag)
    End Sub
End Class

 

 
Previous Previous
 
Next Next
  Forum  General Visual ...  Announce It! ( ...   6.4 beta 1 which is coming out soon has a ListView which can add controls as sub items
Azure banner
.NET Web, Cloud and Mobile application delivery platform | Sitemap | Terms of Use | Privacy Statement | Copyright © 2005-2011 Visual WebGui®       Visual WebGui weblog on ASP.NET Visual WebGui Group on LinkedIn Visual WebGui updates on Twitter Visual WebGui Page on Facebook Visual WebGui YouTube Channel Visual WebGui Platform News RSS