Click here to Skip to main content
15,920,603 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to set both autosizemode and frozen in a one cell in datagridview.

for that how can i do using csharp
C#
datagridView.Columns[1].AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
datagridView.Columns[1].Frozen = true;

but when i use both it shows the error as follows;

Column's AutoSize mode cannot be set to Fill when it is also a frozen column.


for that how can i use both.

please help me.

Regards,

Narasiman P.
Posted
Updated 28-Feb-13 21:23pm
v2
Comments
[no name] 1-Mar-13 4:31am    
please reply the answer for my question.

kindly please help me.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900