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.
 
Back
Top