Solved

Default select of datagridview C#

Posted on 2009-04-14
1
697 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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
XML to SQL Table using c# 5 47
How can I use this extension method? 8 36
Showdialog 8 21
Visual Studio editor? 1 18
In my previous article (http://www.experts-exchange.com/Programming/Languages/.NET/.NET_Framework_3.x/A_4362-Serialization-in-NET-1.html) we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
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:…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

747 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

10 Experts available now in Live!

Get 1:1 Help Now