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 / Windows Forms / WinForm General / June 2007

Tip: Looking for answers? Try searching our database.

Datagridview

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ahmd - 12 Jun 2007 05:38 GMT
Pls Help me

I have one invoice form and an Item form.
Item form consisting of a Dataviegridview showing all items.
(itemcode,name)
Invoice form has dataviewgrid of invoice
(itemcode,name,qty,price,total)
when i click items cell in the invoice form dataviewgrid i am calling
the item form.
what i want is when i double click the item form datagridview items it
shud pass itemcode and name to parent form invoice form datagridview
cell from which cell i have called this item form.

Pls help me this is very urgent..

thanks in advance
Chris Diver - 12 Jun 2007 10:49 GMT
> Pls Help me
>
[quoted text clipped - 12 lines]
>
> thanks in advance

Hi,

Couldn't really get my head around your problem, but it sounds like you
want to click a cell and pass the value somewhere else.

I would use the mouseup event of the DataGridView. I would use the
MouseEventArgs to see if it was double clicked then and the X and Y
co-ords with a DataGridView.HitTest to find out the value in the cell
that was clicked.

If there is an easier way them I don't know it.

HTH,
Chris
Ahmd - 12 Jun 2007 11:07 GMT
On Jun 12, 1:49 pm, Chris Diver <clubbingch...@hotmail.nospam.com>
wrote:
> > Pls Help me
>
[quoted text clipped - 29 lines]
>
> - Show quoted text -

Thank u for ur response mr. chris

C, to be more precise
i have datagridview in one form(mainform) , Columns: -
Itemcode,Itemname and command button
when i click on the command button of the cell, it will show another
form which has a datagridview of Itemcode and name listed . from this
form when i double click any of the item, i want to close this form
and pass itemcode,itemname to the main form datagridview same row
where i have clicked command button

thanks in advance.

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.