Click here to Skip to main content
15,899,679 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
in my project ,i have an datagridview....during search option i want to fix the row in datagridview as '3'....after fixing it user cant add new rows in datagridview...

any one can help me out........

thanks in advance
Posted

1 solution

Hi Nathan..,
I dont know if there is any property to do add rows false but u could do something like this

VB
If DataGridView1.Rows.Count < 3 Then
    DataGridView1.Rows.Add()
End If
 
Share this answer
 
Comments
Nathansathya 6-Jul-11 9:43am    
tks sahu ll try........

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