PC Review


Reply
Thread Tools Rate Thread

DataGrid Advice

 
 
Miro
Guest
Posts: n/a
 
      13th Feb 2007
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


 
Reply With Quote
 
 
 
 
Branco Medeiros
Guest
Posts: n/a
 
      13th Feb 2007
Miro wrote:
> 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.

 
Reply With Quote
 
Cor Ligthert [MVP]
Guest
Posts: n/a
 
      13th Feb 2007
Miro,

It is in this sample
http://www.vb-tips.com/dbpages.aspx?...7-7bc3068aca2c

Cor

"Miro" <(E-Mail Removed)> schreef in bericht
news:(E-Mail Removed)...
>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
>



 
Reply With Quote
 
Larry Linson
Guest
Posts: n/a
 
      13th Feb 2007
just keep on using Access; it is faster and easier; .NET doesn't run
on _ANY_ desktops so don't bother

 
Reply With Quote
 
Larry Linson
Guest
Posts: n/a
 
      13th Feb 2007
yeah it is all MANUAL

welcome to visual fred; I ****ing hate it STILL

 
Reply With Quote
 
Miro
Guest
Posts: n/a
 
      13th Feb 2007
I woke up this morning after dreaming this solution in my head. I will try
it.

Thanks

Miro

"Branco Medeiros" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Miro wrote:
>> 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.
>



 
Reply With Quote
 
Miro
Guest
Posts: n/a
 
      13th Feb 2007
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

"Cor Ligthert [MVP]" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Miro,
>
> It is in this sample
> http://www.vb-tips.com/dbpages.aspx?...7-7bc3068aca2c
>
> Cor
>
> "Miro" <(E-Mail Removed)> schreef in bericht
> news:(E-Mail Removed)...
>>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
>>

>
>



 
Reply With Quote
 
Miro
Guest
Posts: n/a
 
      16th Feb 2007
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

"Miro" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
>I woke up this morning after dreaming this solution in my head. I will try
>it.
>
> Thanks
>
> Miro
>
> "Branco Medeiros" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> Miro wrote:
>>> 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.
>>

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
need some advice- finding rows in DataGrid =?Utf-8?B?TXJOb2JvZHk=?= Microsoft C# .NET 1 30th Dec 2004 08:51 AM
Advice: datagrid for news module Arjen Microsoft ASP .NET 9 20th Apr 2004 04:24 PM
Advice needed (DataGrid and Font) Jamie Macleod Microsoft Dot NET Compact Framework 2 15th Mar 2004 04:11 PM
Datagrid advice Mark Rae Microsoft C# .NET 2 12th Mar 2004 03:06 PM
Advice on editable datagrid Andla Rand Microsoft C# .NET 0 8th Feb 2004 11:04 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:12 PM.