How can i freeze columns or Rows in datagrid in C#
Iam trying to freeze columns in Datagrid in C#. By freezing I mean making the column always visible even when horizontal or vertical scrolling occurs (as in Excel). My target platform is .Net 2.0 frame work. Is there any way to do this?
Roei BarPosted Aug 26, 2009, 4:18 AM
Datagrid Column and Row has a property called "Frozen"
if you want to freeze a column i recommend you do the following
either you want it on selected Row or Column Event and then on the Event Get the Column/Row and mark it as Frozen = true
or create another button or a context menu on mouse right click on which you Freeze/Unfreeze the currently marked
column/row
hope this helps
dont forget to mark this as "Accepted Answer"
and good luck