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

[444 byte] By [Donaghy] at [2007-12-22]
# 1

did you try:

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

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

hrubesh at 2007-8-30 > top of Msdn Tech,Windows Forms,Windows Forms Data Controls and Databinding...
# 2

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

hrubesh at 2007-8-30 > top of Msdn Tech,Windows Forms,Windows Forms Data Controls and Databinding...
# 3

ok, thanks anyway.

Really need to get these to freeze.

Donaghy at 2007-8-30 > top of Msdn Tech,Windows Forms,Windows Forms Data Controls and Databinding...
# 4

Hi there,

Hope this will help

Nadunr at 2007-8-30 > top of Msdn Tech,Windows Forms,Windows Forms Data Controls and Databinding...
# 5

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

thanks

Donaghy at 2007-8-30 > top of Msdn Tech,Windows Forms,Windows Forms Data Controls and Databinding...