Click here to Skip to main content
15,885,278 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I want datagrid rows in read only state when edit event is called.I cant disable the datagrid at that time as i need scrollbar also..So please help me


VB
Private Sub Button8_Click(ByVal sender As Object, _
    ByVal e As System.EventArgs) Handles Button8.Click

    For Each band As DataGridViewBand In dataGridView.Columns
        band.ReadOnly = True
    Next
End Sub


I hv tried this but no effect..Plz suggest
Posted
Updated 18-Feb-12 0:03am
v2

1 solution

Dear Sofia,

Please refer to your earlier question:-

datagrid rows in disabled state[^]
 
Share this answer
 

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