PC Review Forums Newsgroups Microsoft DotNet Microsoft VC .NET How To Freez DataGrid Columns

Reply

How To Freez DataGrid Columns

 
Thread Tools Rate Thread
Old 11-07-2003, 05:48 AM   #1
Rafey
Guest
 
Posts: n/a
Default How To Freez DataGrid Columns


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.


  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off