Datagrid Freeze Panes (vb.net): Rows + Columns

Hi all,

Does anyone know how to freeze the first row of a datagrid table. The columns of the table are not bound, nor is the property show header set to true because the header is imported in with the rest of the table data. Therefore i need to know how to lock / freeze the first row.

Also, i was also lookin to freeze / lock the first two columns of a datagrid.

Any ideas, help greatly appreciated.

thanks, Paul



Answer this question

Datagrid Freeze Panes (vb.net): Rows + Columns

  • Namshub

    If there was code you posted could you please re-post it as I can't see it

    thanks


  • Jonny Neil

    ok, thanks anyway.

    Really need to get these to freeze.


  • Xelestial

    nops it doesnt work . i only saw this working . the freezing part.. no idea.

    Me.BillDataGridView.Rows(0).ReadOnly = True

    Me.BillDataGridView.Columns(1).ReadOnly = True



  • Olaf vd Sanden

    did you try:

    Me.BillDataGridView.Rows(0).Frozen = True

    Me.BillDataGridView.Columns(0).Frozen = True



  • Kharkov Alexander

    Hi there,

    Hope this will help


  • Datagrid Freeze Panes (vb.net): Rows + Columns