datagridview readonly property
-
i am using vb .net 2005 is there a way to make datagridview readonly property become false when we bind a datagridview with datatable ??
aphei wrote:
a way to make datagridview readonly property become false
What wrong with this code?
DataGrid1.ReadOnly = false;
Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net) If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you. :)
-
i am using vb .net 2005 is there a way to make datagridview readonly property become false when we bind a datagridview with datatable ??
-
that's nothing wrong with that script. but i still can't edit the columns. when i write "datagrid1.Columns.Item(0).ReadOnly = False" it become error how can i edit my datagrid when i bind it?? thank's -- modified at 2:22 Tuesday 21st August, 2007
You should able to edit the columns after you bind it, you can't set datagrid's single column to read-only. Check the Datagrid Read only property, It should be false. Bhaskar Shetty
-
i am using vb .net 2005 is there a way to make datagridview readonly property become false when we bind a datagridview with datatable ??
-
You can only change a bound DataGridView Cell's value if it's underlying Data Field is NOT Read Only. Make sure that you are using a DataSource that can be updated.
Tom Garth Developer R. L. Nelson and Associates, Inc., Virginia
-
You should able to edit the columns after you bind it, you can't set datagrid's single column to read-only. Check the Datagrid Read only property, It should be false. Bhaskar Shetty