A community member has associated this post with a similar question:
Datagridview C# not load data

Only moderators can edit this content.

Load data and add new data loop through difference

Dao Duy Luat 0 Reputation points
2023-03-20T09:49:31.4133333+00:00

when insert data is finished into a table A and loop through table A to get the value compared with the data on the datagridview, which is table B. table B only retrieves 1 field of information and adds new as many new columns as you like. why when inserting is done, browse the data in table B in turn are the columns add new and then the remaining fields in table B. but the load event to get the data out again browses the fields in table B then the columns are add new as shown below when I debug 2 cases, add new data and load with the same code.

The data should also be browsed from columns1, column2... to Id, Status... to the end, but it's browsing from Id, status...

then column1,column2

abc

Developer technologies | .NET | Other
Developer technologies | C#
Developer technologies | C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
{count} votes

1 answer

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more