hi to all,
To attain the data dynamically you have to use the Session
(concept of state management) for this, the following steps will help you to perform the action..
1) declare the datatable
and add columns according to your requirement.
2) when click event perform for the selected product then get the selected values of the product and add it to the datatable
3) store the datatable into the Session variable
4) bind the datatable to the gridview.
5) now, if user further click on any of product, then firstly get the values from the Session variable to the datatable, and then add new row to the datatable, then repeat step 3 and 4.
Hopefully, it will helpfull to do so. Also, it has no impact with postback whether page will postback or not.
If you dont want to do postback while performing the operation then do use Ajax or Anthem.Ashok707, if this helps please login to Mark As Answer. | Alert Moderator