Click here to Skip to main content
16,005,697 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Saving Data from datagrid in vb.net 2005 Pin
Dave Kreskowiak10-Jul-07 9:01
mveDave Kreskowiak10-Jul-07 9:01 
AnswerRe: Saving Data from datagrid in vb.net 2005 Pin
George B Gilbert10-Jul-07 12:30
George B Gilbert10-Jul-07 12:30 
QuestionListView add and group items Pin
svh198510-Jul-07 5:52
svh198510-Jul-07 5:52 
AnswerRe: ListView add and group items Pin
George B Gilbert10-Jul-07 6:14
George B Gilbert10-Jul-07 6:14 
GeneralRe: ListView add and group items Pin
svh198510-Jul-07 6:18
svh198510-Jul-07 6:18 
GeneralRe: ListView add and group items Pin
George B Gilbert10-Jul-07 6:38
George B Gilbert10-Jul-07 6:38 
GeneralRe: ListView add and group items Pin
svh198510-Jul-07 6:52
svh198510-Jul-07 6:52 
GeneralRe: ListView add and group items Pin
TwoFaced10-Jul-07 10:44
TwoFaced10-Jul-07 10:44 
Yup, here is a simple example.
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    ' Add a column to the listview
    ListView1.Columns.Add("Name")

    ' Create two groups
    ListView1.Groups.Add("Group1", "Group1")
    ListView1.Groups.Add("Group2", "Group2")

    ' Add two items and assign them to the desired group
    ListView1.Items.Add("Test Group1").Group = ListView1.Groups("Group1")
    ListView1.Items.Add("Test Group2").Group = ListView1.Groups("Group2")

    ' Add another item differently and give it a group
    ListView1.Items.Add(New ListViewItem("Test Group1 again", ListView1.Groups("Group1")))

    ListView1.View = View.Details

    ' Basically you need to know that the groups collection is where you
    ' add groups to the listview

    ' I've showed two different ways you can add an item and assign it to a group
    ' This should give you an idea how to work with groups
End Sub

GeneralRe: ListView add and group items Pin
svh198510-Jul-07 11:12
svh198510-Jul-07 11:12 
GeneralRe: ListView add and group items Pin
svh198512-Jul-07 10:45
svh198512-Jul-07 10:45 
GeneralRe: ListView add and group items Pin
George B Gilbert10-Jul-07 11:44
George B Gilbert10-Jul-07 11:44 
GeneralRe: ListView add and group items Pin
svh198510-Jul-07 11:48
svh198510-Jul-07 11:48 
GeneralRe: ListView add and group items Pin
George B Gilbert10-Jul-07 12:14
George B Gilbert10-Jul-07 12:14 
QuestionAccess a query on my computer Pin
Cory Kimble10-Jul-07 4:28
Cory Kimble10-Jul-07 4:28 
AnswerRe: Access a query on my computer Pin
Christian Graus10-Jul-07 5:04
protectorChristian Graus10-Jul-07 5:04 
QuestionGetting text from MS Word Pin
reegan4110-Jul-07 4:23
reegan4110-Jul-07 4:23 
AnswerRe: Getting text from MS Word Pin
George B Gilbert10-Jul-07 12:43
George B Gilbert10-Jul-07 12:43 
GeneralRe: Getting text from MS Word Pin
reegan4111-Jul-07 4:30
reegan4111-Jul-07 4:30 
GeneralRe: Getting text from MS Word Pin
George B Gilbert11-Jul-07 5:20
George B Gilbert11-Jul-07 5:20 
Questionloading a word document in VB.Net2005 Pin
DarynRoberts10-Jul-07 3:21
DarynRoberts10-Jul-07 3:21 
AnswerRe: loading a word document in VB.Net2005 Pin
Ajai Chaudhary11-Jul-07 2:09
Ajai Chaudhary11-Jul-07 2:09 
GeneralRe: loading a word document in VB.Net2005 Pin
DarynRoberts12-Jul-07 23:47
DarynRoberts12-Jul-07 23:47 
QuestionRe: loading a word document in VB.Net2005 Pin
aswinanu13-Jul-07 7:34
aswinanu13-Jul-07 7:34 
Questionhow can we find whether a codepane is opened Pin
vc++_fragrance10-Jul-07 3:04
vc++_fragrance10-Jul-07 3:04 
AnswerRe: how can we find whether a codepane is opened Pin
Christian Graus10-Jul-07 5:05
protectorChristian Graus10-Jul-07 5:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.