Click here to Skip to main content
15,902,635 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have created gridview in windowsforms.

My problem is that when datas are retrieved from database a margin before all rows in created.

How to remove that margin in datagridview.

I just want to show my database contents without left margin
Posted
Comments
Krunal Rohit 7-Mar-14 9:01am    
The very first column (blank one) ?

-KR
KUMAR619 7-Mar-14 9:03am    
@Kr
yes how to do this

If I remembered it correctly then,
Select Gridview >> Properties >> Selection Mode >> Full Row Select

If it's not working, let me know :)
-KR
 
Share this answer
 
Comments
KUMAR619 7-Mar-14 9:32am    
Selection is working fine

But my problem not solved

I was asking about how to delete the column which has the pointer to select particular row.
Krunal Rohit 7-Mar-14 9:34am    
Can you make it more clear ?

-KR
1) Select the Gridview.

2) Goto the properties window

3) Set The property
C#
RowHeadersVisible=False
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900