Windows Develop Bookmark and Share   
 index > Windows Forms General > reading column names from a datagridview
 

reading column names from a datagridview

Hi,

I have a datagridview with 61 columns
When i pull all the column names into a datatable, all the column names are displayed ( in 61 rows)
When i am using getfirstcolumn and get nextcolumn, i get 61 rows but some of the column names are not displayed.
Do you have any idea why this is happening?
 
Dim abc As DataGridViewColumn = dgvSchedules.Columns.GetFirstColumn(DataGridViewElementStates.None)
   abc = dgvSchedules.Columns.GetNextColumn(abc, DataGridViewElementStates.None, DataGridViewElementStates.None)

Thanks in Advance
rowter  Sunday, October 04, 2009 10:44 PM

issue resolved

rowter  Tuesday, October 06, 2009 8:15 PM

issue resolved

rowter  Tuesday, October 06, 2009 8:15 PM

I’m glad to hear that you have figured out.

It would be appreciated that if you share the solution here so that the answer can be found and used by other community members having the similar questions.

 

Best regards,

Ling Wang


Please remember to click “Mark as Answer�on the post that helps you, and to click “Unmark as Answer�if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Ling Wang  6 hours 47 minutes ago

You can use google to search for other answers

Custom Search

More Threads

• Hardware Comm
• Form Size
• Making property in property grid read-only.
• NotifyIcon poping up a micro-window
• Multi-user environment, prevent PK violation
• Limit Range allowed in TextBox / MaskedTextBox
• How to make checkboxes in corresponds with the listview
• ToolStripItem and events
• InternetOpen,InternetConnect,InternetQueryOption
• Reinstalling WinXP Home