M
Michelle Stone
Hi all. I have an empty datagrid on my web form. And I
add BoundDataColumn(s) to it through code. But after each
postback, the columns and rows disappear.
As a workabout, I tried to rebind the datagrid to the
dataset (stored in a session variable) on the PageLoad
function which works fine.
But my datagrid has a button-column called EDIT which is
supposed to execute some code. But during the postback,
the rebinding tends to ignore the code that is supposed
to execute.
Thinking that the "rebinding" is the problem, i tried to
store the datagrid itself (not the dataset this time) in
a session variable and recalling the same using
myGrid = (DataGrid) Session["MYGRID"];
but that returned an empty grid again :-(
Any solution? Thanks a lot...
add BoundDataColumn(s) to it through code. But after each
postback, the columns and rows disappear.
As a workabout, I tried to rebind the datagrid to the
dataset (stored in a session variable) on the PageLoad
function which works fine.
But my datagrid has a button-column called EDIT which is
supposed to execute some code. But during the postback,
the rebinding tends to ignore the code that is supposed
to execute.
Thinking that the "rebinding" is the problem, i tried to
store the datagrid itself (not the dataset this time) in
a session variable and recalling the same using
myGrid = (DataGrid) Session["MYGRID"];
but that returned an empty grid again :-(
Any solution? Thanks a lot...