Dynamic Template control and value persistence
-
Hi friends I have created a gridview using ITemplate to generate textboxes in cells and to display the data. The grid is bound using a datatable in PreRender event. On Page refresh the modified value gets replaced by the existing value from datatable. If I do not bind the gridview in each refresh, the textboxes gets vanish from the gridview. Can any one help me to overcome this problem. Does viewstate will have any role in this? Thanks in advance
Shivanandan C V
-
Hi friends I have created a gridview using ITemplate to generate textboxes in cells and to display the data. The grid is bound using a datatable in PreRender event. On Page refresh the modified value gets replaced by the existing value from datatable. If I do not bind the gridview in each refresh, the textboxes gets vanish from the gridview. Can any one help me to overcome this problem. Does viewstate will have any role in this? Thanks in advance
Shivanandan C V
Hey Nobody is there to help me? Please give any suggetions atleast. Thanks
Shivanandan C V
-
Hey Nobody is there to help me? Please give any suggetions atleast. Thanks
Shivanandan C V
-
Hi friends I have created a gridview using ITemplate to generate textboxes in cells and to display the data. The grid is bound using a datatable in PreRender event. On Page refresh the modified value gets replaced by the existing value from datatable. If I do not bind the gridview in each refresh, the textboxes gets vanish from the gridview. Can any one help me to overcome this problem. Does viewstate will have any role in this? Thanks in advance
Shivanandan C V
That's right. If there is no value, the gridview will disappear from gui. You can try to set EnableViewState="false".
April Comm100 - Leading Live Chat Software Provider
-
That's right. If there is no value, the gridview will disappear from gui. You can try to set EnableViewState="false".
April Comm100 - Leading Live Chat Software Provider
Thanks for you reply. Is there any event in which, the typed value on the textbox is accessible? So that I can update the data table from that. Then on rebinding I will get the last typed value again. Thanks
Shivanandan C V