Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
450
Problem adding new records in UltraWinGrid
posted

 

I have used the ultragrid extensively in my application, but have only now come accross these two issues:

Issue 1 :

I have 2 grids on the same windows usercontrol contained in 2 panels.

Each is bound to a different datatable in the same dataset.

I populate my dataset then .DataSource = dataset.datatable and .DataBind() each grid.

I am using a fixed add row at the top of each grid. When I add a record to the first grid, the new record reflects in the corresponding source datatable. But if I then go to the second grid to add a row there the new record does not appear in the datatable. But on the second try the record appears. Jump back to the first grid the same happens: the first row is not added to the datatable, but the second one is

I have 2 grids on other forms in my app as well with no issues. What is the problem? It seems like some kind of focus problem?

 

Issue 2:

Another of my grids has a cell button column, a string column with a valuelist attached, a string column, then a double column using a numericeditor. When I click on the button a modal form pops up from which a selection is made, then values are populated into the 2 string columns of my grid (I tried using both .value = and .Setvalue() ). If I then press enter to add the record is does not get added to my datasource datatable. It only gets added if  (either manually or in code) edit the double column of my grid. Please advise as to what the cause could be