DataBind a datagrid to a dataset in another thread.

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is there a way to databind multiple datagrids (each one belong to a different
form) to one dataset?

The dataset is a static member to a class and belongs to different thread
than the above datagrids.

Thank you in advance.
Stavros Makridis.
 
Hi Stavros,

I believe this is the scenario:
You have two (or more) forms, each of which has a datagrid. You have a
static dataset. You bind both the datagrids to the same dataset.
If this is the scenario, then yes, you can do this.

But you will see some interesting behavior with this binding. For example, a
datarow get's commited only if the EndEdit is called from the same source
where the edit was started etc.

HTH,
Rakesh Rajan
 
Hi Rakesh,
I already have seen this "interesting behavior" you mention, but I could not
find a solution other than abandon this kind of binding.

Could you suggest some kind of solution, other than this?
 

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