I've got a form with fields bound to a datatable. The datatable is
populated from a sql server.
I've been using a next button with
form.bindingcontext("datasource","datatable").position+=1 to bind the form
to the next record I want it bound to. That works fine.
My question is: I want to be able to sort the records by a field based on
input from the user and then be able
to move through the records in sort order. I've found that I can sort the
records using a dataview,
but haven't been able to turn that into moving the form through the sorted
records.
If anyone can point me in the right direction in this matter, I'd appreciate
your thoughts.
Thanks,
Mike
Mike Quernemoen - 01 Oct 2004 15:52 GMT
Well, I think I figured it out.
I've now bound the controls to the dataview instead of the datatable.
now i move the position in the dataview like this
form.bindingcontext(dataview).position+=1
Mike
> I've got a form with fields bound to a datatable. The datatable is
> populated from a sql server.
[quoted text clipped - 11 lines]
> Thanks,
> Mike