Pratibha

Pratibha

  • NA
  • 9
  • 0

Factory pattern with datagrid

Jul 12 2017 7:53 PM
hi guys,
 
I am converting an existing module using factory pattern to support more products. 
i have facttory class which gives me 3 types of objects based on code passed.
I have a gridview which binds existing product definitions along with adds, edits and save functions.
 
with factory,i am facing issue with adding new row as i need object without particular type (default object) so that user can go to new editable row, select from dropdowns and type some fields and hence depending upon selection data as particular product will be saved. 
 
Please help. 
 

Answers (1)