Hi all :wave:
Please see the image attach by me I want to remove the red portion in the data grid view, is it possible or not?
How to remove it?
Thanks
Printable View
Hi all :wave:
Please see the image attach by me I want to remove the red portion in the data grid view, is it possible or not?
How to remove it?
Thanks
you would have to deselect the cell so the row pointer will disappear.
It is by default appearing how to deselect it on the form load or there is another meathod. :confused:
I dont have 2005 installed (one of many things to do) but I believe you can sendmessage to perform a click which will take the focus away, thus deselecting it.
I don't have my IDE open now so I can't give you the exact name.
But in 2005 there's a propety in the properties window something
like "rowheadersvisible" with T/F settings available.
Are you saying you want to get rid of the whole row header column or just the row selection indicator arrow?
Quote:
rowheadersvisible" with T/F settings available
Thanks good solution
Thanks JMC
I got the solution
Are you sure you want to do that though? If you do then the user will not be able to select a row using its header. Maybe that's OK, maybe it's not, but consider that before you remove the headers if all you REALLY want is for a row not show as selected when the form loads.Quote:
Originally Posted by shakti5385
I done this but now i am not able to delete the record so what i do?
Is the problem that you can't delete the record now.
Or that you can't select the row in a satisfactory way-- now
that the row header is gone.
So now I am not able to delete the record, and I want to delete the record also. Then how to delete the record after disabling the row header of the data grid view?
How are you using the DataGridView?
Are you progammatically deleting or is the DGV linked to a database?
Can you not allow the user to click on a row and then
programmatically delete the record?
If not you may have to go ahead and show the row headers.
If they seem obtrusive maybe you could adjust their width
to fit your style.
I am using datagrid view but i want to know that after removeing the row header how to delete the row from a datagrid using the datagrid, is we have to sql query here or there is no need for the sql query?
What is the exact reason you wanted to remove the row header?