Solved

Default select of datagridview C#

Posted on 2009-04-14
1
698 Views
Last Modified: 2013-12-17
Hi,
I have set the SelectionMode of my datagridview to FullRow.
I notice when i run the application the datagirdview automatically highlight the first row.
Is there a way to disable this?As i want the suer to select the initial row.

Thanks in advance for the help offered.
0
Comment
Question by:csharp_learner
1 Comment
 
LVL 9

Accepted Solution

by:
Sreedhar Vengala earned 250 total points
ID: 24136617
After binding datasouce to DataGridView
do something like:
dataGridView1.ClearSelection();
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now