Vignesh A

Vignesh A

  • NA
  • 1
  • 1.6k

How to add a values under Specified column header(DatagridV)

Apr 4 2013 2:05 PM

The code had displayed the valuenames in list box...but can't in Datagridview

Dim regkey As RegistryKey = Registry.CurrentUser.OpenSubKey("Identities\{9995D76F-0814-43EF-86DB-1474C2B09A6D}", False)
ListBox1.Items.AddRange(regkey.GetValueNames)

I can't get in this code below:

Dim regkey As RegistryKey = Registry.CurrentUser.OpenSubKey("Identities\{9995D76F-0814-43EF-86DB-1474C2B09A6D}", False)
Datagridview1.columns.Add(regkey.GetValueNames)

Answers (1)