How to have a fixed listview column width in a windows form application C# ?
using code .... :)
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Datta KharadRank #2,135 · 668 reputationPosted Nov 8, 2011, 9:59 PM EST
You should set width of listview as follows:-
listView1.Columns.Add("Col Names",500, HorizontalAlignment.Left);
Width is 500.
If you got correct answer then mark as Accepted Answer.