Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / VB.NET / March 2008

Tip: Looking for answers? Try searching our database.

I need help with DagaGridView

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
ssohaibb@gmail.com - 01 Mar 2008 01:15 GMT
Hi,
I am extremely new to programming and this is a school project that I
am stuck in. It is supposed to be very simple. I have an access DB
with 1 table and 3 columns in that table.
Description, Price and Quantity.

I have a DataGridView with these columns as well.
The Quantity column is editable, default 0.
When I edit the quantity, of multiple things in there (could be more
then one) and click Submit button, it should display on another page,
list of things that have quantity Greater then 0, Thair prices and
quantities and a total at the bottom.

Basically right now I don't care about capturing that data into a db
or anywhere else, just need to see another page onClick submit.

Here is a link if you need to see it.
http://ssohaibb.tripod.com/form.JPG

Any help is appriciated.

Thanks
Mr. Arnold - 01 Mar 2008 11:47 GMT
> Hi,
> I am extremely new to programming and this is a school project that I
[quoted text clipped - 16 lines]
>
> Any help is appriciated.

This may help you.

<http://www.google.com/search?hl=en&q=how+to+pass+a+control+from+a+page+to+anothe
r+ASP.net&btnG=Google+Search
>
Mr. Information - 01 Mar 2008 21:06 GMT
I am not sure how to apply any one of these, because I am not using a
webpage yet. It is just a windows application program.

> <http://www.google.com/search?hl=en&q=how+to+pass+a+control+from+a+pag...>- Hide quoted text -
>
> - Show quoted text -
Mr. Arnold - 01 Mar 2008 21:59 GMT
>I am not sure how to apply any one of these, because I am not using a
> webpage yet. It is just a windows application program.

Then you should being saying form and not page. Form is for Windows Desktop
form application and page is for a Web application a Web page. Also, Onclick
kind of means Web Page. You should be saying Click event for a Windows form.

A form is a class just like any other class. You pass the control in the
form's constructor, so that the other form will use the control.

This is a simple C#.Net solution, but VB.Net you can do the same thing, use
Goggle and find the VB.Net equivalent.

<http://www.c-sharpcorner.com/UploadFile/alindag/HowToPassValuesBetweenWindowsFor
ms.htm02242006061520AM/HowToPassValuesBetweenWindowsForms.htm.aspx?ArticleID=519
479e8-d064-44a1-84b1-5ffc033dbbf3
>

This is C# but you'll be close to doing some similar in VB this is passing a
value,  but instead of passing a value, you are passing a control.

public Form2(cntrl DataGridView)
 {

                InitializeComponent();

               // Please don't this  to heart and continue to do this but
you would a DGV created on the second form.

               // you can do this.

              dgv = cntrl;

 }

Then you can work with dgv on the second form, but like I said find the
VB.Net example using Google or dogpile.com. I am not going look it for it. I
think I am pointing to what you have to do to get the solution.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.