curiouswebster
asked on
How do I block the DataGridView from forcing any new columns from the generic list?
I have a generic list as a DataSource for a DataGridView, but it's adding columns I do not want to the DataGridView.
I have four columns pre-configured in the DataGridView, using the designer. I'd like no more columns in the DataGridView.
Please tell me how to limit this.
Thanks,
newbieweb
I have four columns pre-configured in the DataGridView, using the designer. I'd like no more columns in the DataGridView.
Please tell me how to limit this.
Thanks,
newbieweb
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
oops sorry.. refresh problem.
Its done in code-behind.
Its done in code-behind.
ASKER
Thanks!
Thanks I am doing great and yourself?
Sorry that property is not available through the designer must use code.
dataGridView1.AutoGenerate Columns = false;
Sorry that property is not available through the designer must use code.
dataGridView1.AutoGenerate
Not a problem, glad I was able to help.
Have a great day. ;=)
Have a great day. ;=)
ASKER
How are you doing?! Long time...
I do not see the AutoGenerateColumns property in the DataGridView. Is it buried somewhere?
Thanks,
newbieweb