Hello,
I have made a one form with functionality to create grid view dynamically.
i have used concept of "how to create template columns dynamically in a grid view"
Link : http://www.codeproject.com/KB/aspnet/DynamicTemplateColumn.aspx
its working good.
i am creating control run time set the different property of control and bind it to gridview columns.
For example if i want to add text box column into gridview, then i create text box, set the different property of text box, and add that template to gridview column.
But the problem is , once page datagrid load with textbox column, i am enter some data in that column.
then click on save button on page. when i clicked on save then after postback i am not able to get data of that text box column.
For Example
1) Load gridview with Text Box Column (Added runtime)
2) Added one row in Datagridview
2) Write data in that column(Text box column)
3) Click Save button (to save data of gridview)
4) Page post back (Here Gridview has no rows!!!)
It shows row count 0 when page post back!
So How to get value of that text box column?
I need your Help.
Prompt reply will be appreciated.
Thank you