asp.net - dynamic columns disappears after postback -
i have gridview boundfields , 2 templatefields . in these 2 templatefields , dynamically create usercontrols containing dropdownlist , textbox , users can modify. when try values of controls after postback , values in boundfields still there dynamic controls disappears. can create them again won't user's values... how can these values before they're lost? here's of code: in rowdatabound event: select case type case "booleanbis" e.row.cells(2).controls.clear() dim list1 booleanbislist = new booleanbislist(avant, false) e.row.cells(2).controls.add(list1) e.row.cells(4).controls.clear() dim list2 booleanbislist = new booleanbislist(apres, true) e.row.cells(4).controls.add(list2) case "boolean" e.row.cells(2).controls.clear() dim list3 booleanlist = new booleanlist(avant, false) e.row.cells(2).controls.add(list3) e.row.cells(4).controls.clear() ...