How to edit the datagridview column if it was populated using a dataset? I would like to edit the column header text and width.
AngelicOne
4
Posting Whiz
Recommended Answers
Jump to PostOne method for changing the column header is to change the name of the column as it's pulled from the DB with the "AS" modifier.
As for the width it can be dynamically set with the equivalent of:
dataGridView1.Columns[0].Width
Hope that helps :)
All 3 Replies
Lusiphur
185
Practically a Posting Shark
Team Colleague
Featured Poster
AngelicOne
4
Posting Whiz
Lusiphur
185
Practically a Posting Shark
Team Colleague
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.