C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Forums » .NET » Windows »

DataGrid View


Posted Date: 06 Nov 2009      Posted By: SuganyaCMR      Member Level: Gold     Points: 1   Responses: 2



Hi,

I have two datagrid view
In the First dg i have 5 records
while i selecting the 1st row in that first datagrid...
that row was to bind in the second datagrid...(thats happen to me)
while iam selecting the 2nd row in the first datagrid....
It wont bind to the 2nd datagrid....

whats my problem...

here is my sample code

P.Buyer = Convert.ToInt32(dg_OrderDetails.CurrentRow.Cells[0].Value);
P.MaterialNo =Convert.ToInt32(dg_OrderDetails.CurrentRow.Cells[1].Value);
P.Description = dg_OrderDetails.CurrentRow.Cells[2].Value.ToString();
P.OrderQuantity = dg_OrderDetails.CurrentRow.Cells[3].Value.ToString();




Regards,
Suganya

In order to succeed, you must first be willing to fail!
Rate my post!.If u found useful





Responses

Author: vipul    06 Nov 2009Member Level: DiamondRating: 2 out of 52 out of 5     Points: 2

Hi,
i can't understand your question 100% please explain in the detail what you want.
you question is
you selected first row from first dgv and that row is added to second dtagirdview or already bind the second datagrid view and you select first row in the second grid view. i am correct or not.

Please Rate This Answer If They Helpful

Thanks & Regards
Patel Vipul



Author: Nagarajan    06 Nov 2009Member Level: SilverRating: 2 out of 52 out of 5     Points: 2

You have to Get the Cell values in array.. then only you have to bind it on another grid by loop statement...

Grid should be Starts from First index..

Regards,
Naresh

Regards,

Naresh

Don't Scream for a Change... Become a Change..

Do not forget to Rate the post..



Post Reply
You must Sign In to post a response.
Next : How to customize crystal report chart in vb.net??
Previous : Set up for windows application
Return to Discussion Forum
Post New Message
Category: Windows

Related Messages



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use