Solved

Default select of datagridview C#

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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…

856 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