browse: forums | FAQ
Connecting Tech Pros Worldwide

Hey there! Do you need C# / C Sharp help?

Get answers from our community of C# / C Sharp experts on BYTES! It's free.

How To Freez DataGrid Columns

Rafey
Guest
 
Posts: n/a
#1: Nov 13 '05
Hello,

I have small DataGrid problem.

I have created a DataView from a SQL database table. That table has 25
columns. I used select * from tbl1 to fetch all columns and all rows.

I am binding DataView to DataSource property of DataGrid.

Now my DataGrid has 25 columns and over 2000 rows.


What I want is to freez first 2 columns of DataGrid. So that when I do
horizontal scroll those two columns are always visible.

It is exactly the same as you lock columns in EXCEL sheet.

Kindly help,

Rafey.





Closed Thread


Similar C# / C Sharp bytes