Windows Develop Bookmark and Share   
 index > Windows Forms Data Controls and Databinding > How to set BindingSource to read only?
 

How to set BindingSource to read only?

This seems like it should be simple... Is there an easy way to set my BindingSource or DataTable to read only?

I have a form that I load with a TableAdapter. The controls are bound to a BindingSource component - nothing tricky here.

I would like to set the form to read only based on one of the field values in the record. I was thinking there was a way to set the BindingSource or the DataTable to read only but the ReadOnly property is - read only!!

I could set every control to be read only but that would be a lot of work.

Any ideas?

Thanks,

Jim

Jim Shipley  Friday, July 20, 2007 5:35 PM

http://www.codeproject.com/vb/net/DatabindingReadOnlyProps.asp


Check it outSmile






Ivan Ciric  Friday, July 20, 2007 5:40 PM

http://www.codeproject.com/vb/net/DatabindingReadOnlyProps.asp


Check it outSmile






Ivan Ciric  Friday, July 20, 2007 5:40 PM

You can use google to search for other answers

Custom Search

More Threads

• DataGridCheckBoxCell question
• GridVeiw Delete problem
• Reading datareader using a for loop.
• Deleting Rows in datatable
• DataGridView and Heterogenous cell types
• DataGridView not binding to implemented IList class?
• ComboxBox Binding fires SelectedIndexChanged
• CsvDataSourceView
• problem with access and vb.net
• Creating a preview page before submitting info to database