@blaise@friendica.rogueproject.org
Post #4015827
2026-07-22 15:43 UTC
Replies (2)
-
@unusnemo@friendica.rogueproject.org 2026-07-22 21:35
@blaise Do you have copies of the pristine dataset before being accessed via the code? What language are we using to access the dataset (assuming a higher level language over the SQL is being used)? Do you have a copy of the original code that did work?
-
@zer0unplanned@friendica.rogueproject.org 2026-07-22 18:41
@blaise This is the most common cause. If the code iterating through or preparing the recordset left the cursor at the end (EOF), the DataGrid binds to the current position forward. Since there are no records "ahead" of EOF, it renders zero rows but retains the schema (column names). Fix is explicitly reset the cursor to the beginning before assigning the datasource. ' Reset cursor to the first record If Not rs.EOF Then rs.MoveFirst End If Set DataGrid1.DataSource = rs DataGrid1.Refresh 1.Reset cursor to the first record 2.Assign the datasource which is rs 3.Force a refresh if the grid doesn't auto-update 3 separate commands The End if is not there for a joy