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. Zero DataGride View 1_CurrentCellDirtyStateChanged (Object Sender, EventArgs E) {if (dataGridView1.IsCurrentCellDirty) {dataGridView1.CommitEdit (DataGridViewDataErrorContexts.Commit); Edit}

Remember to register your event:

  this.dataGridView1.CurrentCellDirtyStateChanged + = New System.EventHandler (this.dataGridView1_CurrentCellDirtyStateChanged);    

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -