Grid-like element for Windows Forms Project?

Hey, Big Smile

I have found the DataGridView and GridView elements but I need a GridView element which I can add to my Windows Form.

The GridView has an improved interface and supports frozen columns which I want in my project. GridView is a WebControl so I can't use it on my Windows Form.

Is there an alternate free control available which you'd recommend if there is no other option Tongue Tied

Best Regards,

Dean. Smile


Answer this question

Grid-like element for Windows Forms Project?

  • Romeu

    Thanks for that help but I'm still looking for a grid-like control which doesn't look dodgy and like 5 years old like the dataGridView does.

    Is there a way I can theme the DataGridView to look like a listView in detailed view I need the look of a listView and the functionality of a dataGridView (comboboxes etc) inside the View.

  • mangorind

    Hi,

    The DataGridView Control (System.Windows.Forms.DataGridView) for Windows Forms also supports Frozen Columns.

    You just need to have a method as shown:

    private static void FreezeBand(DataGridViewBand band)
    {
        band.Frozen = true;
        DataGridViewCellStyle style = new DataGridViewCellStyle();
        style.BackColor = Color.WhiteSmoke;
        band.DefaultCellStyle = style;
    }

    and then call:
    FreezeBand(dataGridView.Columns[1]);

    Regards,
    Vikram



  • Grid-like element for Windows Forms Project?