Jump to content

How to customize the datagridview in C#?

i want to use the entire area of the datagrid rather than the corner area as shown in the image and i want to remove the circled area shown in the image 

data.PNG

Link to comment
Share on other sites

Link to post
Share on other sites

4 minutes ago, Niksa said:

Set property RowHeaderVisible to false

thank you.one more thing do u know how to select entire row when user selects a particular cell

Link to comment
Share on other sites

Link to post
Share on other sites

28 minutes ago, Shammikit said:

thank you.one more thing do u know how to select entire row when user selects a particular cell

you should just declare in the form constructor something like this

 

dataGridView1.SelectionMode = DataGridViewSelectionMode.FullRowSelect;

Link to comment
Share on other sites

Link to post
Share on other sites

7 minutes ago, Niksa said:

you should just declare in the form constructor something like this

 

 


dataGridView1.SelectionMode = DataGridViewSelectionMode.FullRowSelect;

 

Thanks

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×