Question : ListBox Items As Header Text in a Datagridview Columns

I have a databound ListBox .I need to pass the items as header text in my datagridView Columns.
i use the follwing code
1:
2:
3:
4:
5:
6:
7:
8:
9:
Dim drv as datarowview =Ctype(me.Listbox1.SelectedItem,Datarowview)
dim SelTex as String=drv.Item("ColumnItems")
Dim TNumber as integer =Me.Listbox.Items.Count
   'For the Datagridview i set the visibility of the Desired Columns to true'
    
     For i as integer =3 to (3+TNumber)-1 
         Me.Datagridview1.Columns.Item(i).Visible=true
         Me.Datagridview1.Columns.item(i).HeaderText=SelText     'And Here Is My Problem I got Only the First item .I know that i have to loop through the lisbox items but......'
      next

Answer : ListBox Items As Header Text in a Datagridview Columns

You can however depending on the size of the Exchange Database & available disk it could soon fill up.
i.e. If you Shadow Copy a 30GB database and have 100GB free disk you would have to set about 70GB of Shadow Copy space (including log files, etc).

It may never work exactly properly (don't always rely on it) as I've seen the odd time that the logs are Shadowed but not the DB.
Random Solutions  
 
programming4us programming4us