DataGrid Advice

M

Miro

I have created an app that uses an Access Database ( or is trying to ).

The problem is, is that I do not know the Access Database name ( mdb file
name ) until the program is running.

Im starting to realize that creating something like a datagrid where
everything can be clicked thru and properties has to be done manually and
all thru code.

My book gives examples on how to do everything with the VB objects, and im
finding it tuff to slowely get the "By Code" working. - And this is
only my first form. I am dreading doing this thru every form.

Thanks

Miro
 
B

Branco Medeiros

Miro said:
I have created an app that uses an Access Database ( or is trying to ).

The problem is, is that I do not know the Access Database name ( mdb file
name ) until the program is running.

Im starting to realize that creating something like a datagrid where
everything can be clicked thru and properties has to be done manually and
all thru code.
<snip>

If the databases you must open have the same structure, I suppose you
can use one at design time just to create the UI -- including grid
cols and the like -- and assign the run-time Dataset associated with
the real db to the BindingSource's DataSource that VB automagically
created for you (and that drives the Grid). Never tried, though.

HTH.

Regards,

Branco.
 
L

Larry Linson

just keep on using Access; it is faster and easier; .NET doesn't run
on _ANY_ desktops so don't bother
 
M

Miro

I woke up this morning after dreaming this solution in my head. I will try
it.

Thanks

Miro
 
M

Miro

Thank you Cor,

I will try your meathod here and also Branco's and see which one works out
best for me in the end.

Miro
 
M

Miro

I found the answer to what I was looking for.
Search this newsgroup for a title

Re: 2005 Express OleDbConnection - Solved

Very simple really.
Thanks for your help.

Miro
 

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

Top