Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Aug 12, 2012 08:24 PM by furapt
Aug 10, 2012 10:42 PM|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 12, 2012 01:21 AM|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 08:24 PM|LINK
Yes, that is an alternative but I will change the approach of the app, thanks anyway!