How to make datagrid all columns uneditable? thanks
Printable View
How to make datagrid all columns uneditable? thanks
Set the DataGrid's ReadOnly property to True.
Hope that helps
yes, that is what I did. Thanks.
Now I have another question. Initially my grid is empty and ReadOnly. now I want to click a button to add a new row. I set ReadOnly to false. but I still do not see the empty row with *.
Do you have any idea?
i'm really not sure on this, but it is what i think will work... i have not done it.
add the new row to your datatable that the datagrid is bound to and i belive the grid will update accordingly by itself.
You can find here a lot of good stuff about datagrid and other controls:
http://www.syncfusion.com/FAQ/WinForms/