DataGrid BoundColumns and ViewState - A Question

  • Thread starter Thread starter New Bee
  • Start date Start date
N

New Bee

I understand that viewstate is not saved for bound columns, so although I
can add my bound columns in the Init event, Im not sure how I get retreive
the posted back information. Let me explain more clearly.

If I have a column which is added programatically and bound to the data then
displayed in edit mode on the webform, I have a value of lets say '22' in
the textbox control which is displayed in the cell.

I hit the update link but when the update event fires, how in heavens name
am I supposed to retreive the values displayed at postback ??


Thanks
 
You can try to get it from e.Item of the DataGridItemEventArgs of the edit
event

Sam
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Problem with control and ViewState 3
BoundColumn 1
DataGrid Viewstate 4
BoundColumn TextBox 2
Dynamic BoundColumn 2
Persistent ViewState 4
Datagrid : viewstate 1
hidden inputs and viewstate 2

Back
Top