Coder Social home page Coder Social logo

Comments (5)

dennismagno avatar dennismagno commented on August 13, 2024

Have you tried to autosize your column using this command metroListView1.AutoResizeColumns(ColumnHeaderAutoResizeStyle.ColumnContent);

from metroframework-modern-ui.

lildukedana avatar lildukedana commented on August 13, 2024

I have the same, but the stipulation is that we must allow our users to resize columns at their will.
Is there any other modifications to show all the characters in the column?

from metroframework-modern-ui.

frankravent avatar frankravent commented on August 13, 2024

Problem is in this lines: 690 and 692 https://github.com/dennismagno/metroframework-modern-ui/blob/f8596bebc96f9bed23ce954b2209a473c392893b/MetroFramework/Controls/MetroListView.cs#L690

if (this.View == View.Details) return;
int _colWidth = e.Item.Bounds.Width;
if (this.View == View.Details) _colWidth = this.Columns[0].Width;

I don't know why the owner did so, maybe there should be conditions for List and Small Icon. I never used them and don't know the specifics. After disabling these lines, the width of the columns does not depend on the width of the first.

from metroframework-modern-ui.

thomasmcneill avatar thomasmcneill commented on August 13, 2024

Is this issue going to resolved for the nuget package?

from metroframework-modern-ui.

gismofx avatar gismofx commented on August 13, 2024

Problem is in this lines: 690 and 692 https://github.com/dennismagno/metroframework-modern-ui/blob/f8596bebc96f9bed23ce954b2209a473c392893b/MetroFramework/Controls/MetroListView.cs#L690

if (this.View == View.Details) return;
int _colWidth = e.Item.Bounds.Width;
if (this.View == View.Details) _colWidth = this.Columns[0].Width;

I don't know why the owner did so, maybe there should be conditions for List and Small Icon. I never used them and don't know the specifics. After disabling these lines, the width of the columns does not depend on the width of the first.

Working Permalink:

if (this.View == View.Details) return;

@dennismagno I'm happy to make this fix. Will you accept a PR and publish an updated NuGet?

from metroframework-modern-ui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.