Hi All,
I have a datalist and in each row of the datalist I have a textbox, two datagrid and two command button. The binding of the datalist working properly and it's populating with the database records for the datagrid1.
If the user clicks the 1st command button then I am generating rows and columns for the 2nd datagrid based on the textbox value as row and columns based on the 1st datagrid.
Now I created the columns dynamically for the 2nd datagrid.
If the user clicks the 2nd command button then I wanted to run a algorithm based on the values entered in the 2nd datagrid.
Now the problem is after the postback i am not getting the datagrid textbox columns which are dynamically created.
I know i have to create the datagrid columns again in the OnInit event. I did the same but not able to get the value for further processing. Please any one help me.
This is the control structure in my web page
DataList
Row1
TextBox1
Button1
Button2
Datagrid1
Datagrid2
Row2
Row3