c# - DataGridViewCombox Refresh Windows Form -
I am working with a DataGridView which has a compoundbox in the Windows form I Data Gridviewview Datatat Retrieves data from There is no problem with data populated for datagrid view, but combobox does not refresh. When this is clicked it will refresh only with the correct values I am not very familiar with datagridview control or an expert in C #. I inherited this project from the previous developer, who had left the company. Anyone can understand the way to refresh the DataGrud viewbox, when Datagridview data source is rebooted. The current code is the phase. Create data table Null DatagridView DataGridView.DataSource = DataTable How to refresh datagridviewcomboxcolumn after this? Thanks for the help. I will try the event DataGridView. Remember to register your event: Zero DataGride View 1_CurrentCellDirtyStateChanged (Object Sender, EventArgs E) {if (dataGridView1.IsCurrentCellDirty) {dataGridView1.CommitEdit (DataGridViewDataErrorContexts.Commit); Edit}
this.dataGridView1.CurrentCellDirtyStateChanged + = New System.EventHandler (this.dataGridView1_CurrentCellDirtyStateChanged);
Comments
Post a Comment