I need a datagrid that looks like similar to this:
[tt]
|-------------------------------|
| | MEAN | STD | SI |
|-------------------------------|
|Row 1 |[ ] | [ ] | [ ] |
|-------------------------------|
|Row 1 |[ ] | [ ] | [ ] |
|-------------------------------|
|Row 1 |[ ] | [ ] | [ ] |
|-------------------------------|
|Row 1 |[ ] | [ ] | [ ] |
|_______________________________|
[/tt]
However, I need the columns to be dynamically created. I am using code from here to create the columns dynamically.
The problem is when you add a column to the datagrid at run-time, per the documentation, it does not get added to the viewstate of the datagrid. This creates a problem for me because there is no way to get the values the user entered into the grid at post back (at least no way I can figure out).
Can someone help me out with ideas on how to make this happen?
[tt]
|-------------------------------|
| | MEAN | STD | SI |
|-------------------------------|
|Row 1 |[ ] | [ ] | [ ] |
|-------------------------------|
|Row 1 |[ ] | [ ] | [ ] |
|-------------------------------|
|Row 1 |[ ] | [ ] | [ ] |
|-------------------------------|
|Row 1 |[ ] | [ ] | [ ] |
|_______________________________|
[/tt]
However, I need the columns to be dynamically created. I am using code from here to create the columns dynamically.
The problem is when you add a column to the datagrid at run-time, per the documentation, it does not get added to the viewstate of the datagrid. This creates a problem for me because there is no way to get the values the user entered into the grid at post back (at least no way I can figure out).
Can someone help me out with ideas on how to make this happen?