PostBack on a Datagrid

B

Brian Conway

How do I code for a datagrid to postback an editable field? I have field
that come up automatically when the datagrid gets populated. You can make
some changed right there to multiple fields, however, I want it to postback
to the dataset after that field loses focus.
 
M

Mohamoss

Hi Brian
On LostFocus event, call the update method on your data adaptor passing as
parameter your dataset and connection. But note this will only occur when
the page is posted back if you want this to happen immediately however ,
make sure your data grid is set to cause post back . hope this helps
Mohamed Mahfouz
MEA Developer Support Center
ITworx on behalf of Microsoft EMEA GTSC
 

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

Top