private void frmUpdateBook_Load(object sender, EventArgs e) { //GET DATATABLE FROM DATABASE BookDTB = bd.GetBookTable().Tables[0]; BookTypeDTB = bd.GetBookTypeTable().Tables[0]; PublisherDTB = bd.GetPublisherTable().Tables[0]; AuthorDTB = bd.GetAuthorTable().Tables[0]; SuggestDTB = nb.GetSuggestTable().Tables[0]; //SET DATASOURCE TO DATAGRIDVIEW dgvBook.DataSource = BookDTB; dgvBookType.DataSource = BookTypeDTB; dgvPublisher.DataSource = PublisherDTB; dgvSuggestList.DataSource = SuggestDTB; dgvSuggestColumnsDelete(); //COMBOBOX DATA GetSourceCbb(); //TEXTBOX BINDING TXTBookDataBindings(); TXTBookTypeDataBindings(); TXTPublisherDataBindings(); TXTSuggestDataBindings(); //SET TEXTBOX IS READONLY TXTBookSetReadOnly(); TXTBookTypeSetReadOnly(); TXTPublisherSetReadOnly(); TXTSuggestSetReadOnly(); }