Last post Aug 12, 2012 04:24 PM by furapt
Aug 10, 2012 06:42 PM|furapt|LINK
I have a gridview that the columns are auto generated because I can add and remove columns in runtime from the database table, in that way I never know the name of the column.
My problem is this, If I want to update a value in that especific columns that I added in runtime, how can I do this, because I don't know the name of that columns, I can't figure out...
My web app is in c# and asp.net
Aug 11, 2012 09:21 PM|Decker Dong - MSFT|LINK
As far as I see，I think you can use SqlDataAdapter.Fill method to DataTable, and then use SqlCommandBuilder to generate CRUD methods，and then you can do modifications to DataTable，and then call SqlDataAdapter.Update to upgrate the DataTable to the real table.
Aug 12, 2012 04:24 PM|furapt|LINK
Yes, that is an alternative but I will change the approach of the app, thanks anyway!