DataGrid Disappears when I click on Edit

J

Josh Behl

In my test environment my datagrid is working is just fine. I have multiple
template columns and I am not using paging. When I move the datagrid into
production, the datagrid populates but it then disappears when I click on
the edit or delete button. Does anyone have any ideas or have run into this
before?
 
O

Oleg Ogurok

It seems you forget to call .DataSource and .DataBind() on your grid. This
is necessary when you're switching between normal and edit modes because
your grid gets regenerated with different controls. For example, in Normal
mode you may use Labels, and in Edit mode, TextBoxes and CheckBoxes.

-Oleg.
 
J

josh behl

I understand what you are suggesting however my grid was working in my
testing environment just fine without taking this approach. The exact
same code just doesn't seem to work in my production environment. There
must be some sort of a configuration that I need to have to get this to
work properly.

jjbehl
 

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

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top