Hello,
I have the following scenario. I have an empty RadGrid and I want to inline insert items. I also have a button and on the button click I need to insert all the items from the RadGrid into a database.
I want to use a DataTable that is placed in a session object as a datasource for my RadGrid. On every RadGrid insert item event I want to add a row into my session DataTable. And after a button click I am going to take each row from the DataTable and insert it's data into an EntityObject (which is in my case called "Product") which I'm going to insert into a database with context.SaveChanges() method.
What I can't accomplish is to store temporary data in a DataTable that is stored in session object.
Please, is there any example of something similar?
I have the following scenario. I have an empty RadGrid and I want to inline insert items. I also have a button and on the button click I need to insert all the items from the RadGrid into a database.
I want to use a DataTable that is placed in a session object as a datasource for my RadGrid. On every RadGrid insert item event I want to add a row into my session DataTable. And after a button click I am going to take each row from the DataTable and insert it's data into an EntityObject (which is in my case called "Product") which I'm going to insert into a database with context.SaveChanges() method.
What I can't accomplish is to store temporary data in a DataTable that is stored in session object.
Please, is there any example of something similar?