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 »

Selecting Particular Row in Datagridview Programmatically


Posted Date: 03 Nov 2009      Posted By: Abbas      Member Level: Gold     Points: 1   Responses: 1



HI Friends,
i am using BindingNavitor, on the MoveNext Button CLick, i want to select next row in DatagridView, as user clicks next from the BindingNavigator.
For this i am using Below Code.

dataGridView1.Rows[Convert.ToInt32(bindingNavigatorPositionItem.Text)-1].Selected = true;

but this seems working, coz this selects next row, but does not unselects previous rows, i want this to be Dynamcally.

Please reply with Appropriate Solution.
Thanks And Regards
Abbas Electricwala





Responses

Author: Neetu    03 Nov 2009Member Level: DiamondRating: 2 out of 52 out of 5     Points: 2

dataGridView1.Rows[Convert.ToInt32(bindingNavigatorPositionItem.Text)-2].Selected = flase
dataGridView1.Rows[Convert.ToInt32(bindingNavigatorPositionItem.Text)-1].Selected = true

regards
Neetu



Post Reply
You must Sign In to post a response.
Next : Is there any way to draw a chart in vb.net?
Previous : How to build a windows application to .exe form
Return to Discussion Forum
Post New Message
Category: Windows

Related Messages



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use