Interesting Datagrid

akrishmohan

New member
Joined
Jun 10, 2003
Messages
4
Hi all
how do I make the whole column of a datagrid read-only/??

the column should be displayed but the user should be prevented from editing the values.

--Krish
 
Attach a tablestyle to your datagrid and then make the column you want readonly.

Dim tablestyle as new DataGridTableStyle()
YOURDATAGRID.tablestyles.add(tablestyle)

tablestyle.GridColumnStyles(YOURCOLUMNINDEX).ReadOnly = True

Voila....
 
Back
Top