|
-
Oct 28th, 2006, 01:31 AM
#1
Thread Starter
Just Married
-
Oct 28th, 2006, 02:30 AM
#2
Re: [2005] Data Grid View Problem
you would have to deselect the cell so the row pointer will disappear.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Oct 28th, 2006, 02:43 AM
#3
Thread Starter
Just Married
Re: [2005] Data Grid View Problem
It is by default appearing how to deselect it on the form load or there is another meathod.
-
Oct 28th, 2006, 02:48 AM
#4
Re: [2005] Data Grid View Problem
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.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Oct 28th, 2006, 06:04 AM
#5
Frenzied Member
Re: [2005] Data Grid View Problem
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.
-
Oct 28th, 2006, 06:14 AM
#6
Re: [2005] Data Grid View Problem
Are you saying you want to get rid of the whole row header column or just the row selection indicator arrow?
-
Oct 28th, 2006, 06:17 AM
#7
Thread Starter
Just Married
Re: [2005] Data Grid View Problem
rowheadersvisible" with T/F settings available
Thanks good solution
Thanks JMC
I got the solution
Last edited by shakti5385; Oct 28th, 2006 at 06:25 AM.
-
Oct 28th, 2006, 06:30 AM
#8
Re: [2005] Data Grid View Problem
 Originally Posted by shakti5385
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.
-
Oct 28th, 2006, 06:48 AM
#9
Thread Starter
Just Married
Re: [RESOLVED] [2005] Data Grid View Problem
I done this but now i am not able to delete the record so what i do?
-
Oct 28th, 2006, 09:10 AM
#10
Frenzied Member
Re: [RESOLVED] [2005] Data Grid View Problem
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.
-
Oct 29th, 2006, 02:10 AM
#11
Thread Starter
Just Married
Re: [RESOLVED] [2005] Data Grid View Problem
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?
-
Oct 29th, 2006, 05:32 PM
#12
Frenzied Member
Re: [2005] Data Grid View Problem
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.
-
Oct 30th, 2006, 12:55 AM
#13
Thread Starter
Just Married
Re: [2005] Data Grid View Problem
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?
-
Oct 30th, 2006, 05:05 AM
#14
Frenzied Member
Re: [2005] Data Grid View Problem
What is the exact reason you wanted to remove the row header?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|