DataGridView Columns

dualshock03

Well-known member
Joined
Jan 28, 2007
Messages
105
Programming Experience
1-3
Hi! i've got problem with this DataGridview. ive got 3 columns on the grid and i want to retrieve the data from database... it worked! but the problem is, the row fields is not applied to the 3 columns, hence it autogenerates next to the 3 columns that ive made from the control with complete 3 new columns and rows


HHHEEELLPPPP PLSS!!
 
In code you have to set DataGridView123.AutoGenerateColumns=False. Either in code or Designer edit the DataGridView columns and set DataPropertyName corresponding to the datasource column names.
 
Back
Top