Datagrid In a webcontrol

C

CalSun

I have a datagrid with Edit/Delete columns in a webcontrol.
I load this control dynamically based on users' selection from a table
dropdownlist.
The control loads fine and the data is there. However, when I click on Edit
to change the current column, the column doesn't change to Update/Cancel.
The data in the datagrid is gone. It's a blank datagrid.

I need your help.
--Thanks
 
C

CalSun

Thanks for the message.
I have solved the problem. The Edit/Delete features work just fine with the
datagrid. My problem was the order of event. I select a table from a
dropdownlist and detect the change in page_load. The page_load event takes
place before the dropdownlist change. It doesn't work with
cmbTable.SelectedValue in page_load. I got the dropdownlist selection with
request.form.

--CalSun
 

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

Members online

Forum statistics

Threads
473,774
Messages
2,569,598
Members
45,150
Latest member
MakersCBDReviews
Top