DataSource property

  • Thread starter Thread starter San
  • Start date Start date
S

San

Hi,
When we pass the DataSource to any control is it passed by value or
reference.If it is by reference then when we make changes to the
datasource(like datatable) why it doesn't refelect on the control..

thanks in advance..
 
Hi,

It is passed by reference, of course.
You don't see the changes immediately (at row level) because there is a
buffer within currencymanager (you can think of it in this way).
Thus, you need to move position of currencymanager to another row (move
focused row in grid) or call currencymanager.EndCurrentEdit() for commiting
changes.
 

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

Back
Top