URGENT problem with Databindings.

Hi,

I'm using .NET Framework 1.1 for this project (we're not quite ready to roll out 2.0 for the company). I'm having a problem I don't think I've encountered before, and it's driving me CRAZY. I'd really appreciate any help I can get on it.

The first weird observation that I made was that if I had a list box, and set it to have the datasource be dataset.table and the displaymember be field, it wouldn't set the position in the bindingcontext. This was weird, I thought to myself, so I tried setting the datasource to be dataset, and the displaymember to be table.field, and it would correctly show the bindings for the controls.

Following this model when I had a Janus grid to show a child table's columns, I set the datasource to the dataset, and the datamember to table.relationship. This didn't work. I had to set it to Dataset.table, and the datamember to the relationship. This might just be an odd quirk about it, though.

(when I was messing around with this oddity, I found that bindingcontext(dataset.table) and bindingcontext(dataset, "table") are not the same thing. I was trying to move the position manually before I discovered switching around the datasource and members.

Now, everything's fine and dandy, right No. I started getting odd errors I've never seen before when I would call EndCurrentEdit(). I would get "Object not set to an instance of an object" from RecordChanged (apparantly called from either EndCurrentEdit or just da.update). Finally, I've tried switching the bindingcontext back and forth between using the string or the actual table every which-way and I can't seem to be able to EndCurrentEdit and update no matter what I do. This has been a nightmare, and I'm fairly certain that I've never ever seen this problem before.

In help->about from visual studio I find that I'm using .NET Framework 1.1. It doesn't state whether I have SP1 installed or not (I'm not sure).

I could really use some help on this. Thanks,

Bryce


Answer this question

URGENT problem with Databindings.

  • URGENT problem with Databindings.