1
Answer

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

Ask a question
Vignesh A

Vignesh A

11y
1.4k
1

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)