Results 1 to 14 of 14

Thread: [RESOLVED] [2005] Data Grid View Problem

  1. #1

    Thread Starter
    Just Married shakti5385's Avatar
    Join Date
    Mar 2006
    Location
    Udaipur,Rajasthan(INDIA)
    Posts
    3,747

    Resolved [RESOLVED] [2005] Data Grid View Problem

    Hi all
    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
    Attached Images Attached Images  
    Last edited by shakti5385; Oct 29th, 2006 at 02:15 AM. Reason: Get some problem in the deleting the record

  2. #2
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    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 PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI 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

  3. #3

    Thread Starter
    Just Married shakti5385's Avatar
    Join Date
    Mar 2006
    Location
    Udaipur,Rajasthan(INDIA)
    Posts
    3,747

    Question Re: [2005] Data Grid View Problem

    It is by default appearing how to deselect it on the form load or there is another meathod.

  4. #4
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    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 PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI 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

  5. #5
    Frenzied Member
    Join Date
    Aug 2006
    Posts
    1,051

    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.

  6. #6
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    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?
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  7. #7

    Thread Starter
    Just Married shakti5385's Avatar
    Join Date
    Mar 2006
    Location
    Udaipur,Rajasthan(INDIA)
    Posts
    3,747

    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.

  8. #8
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: [2005] Data Grid View Problem

    Quote 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.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  9. #9

    Thread Starter
    Just Married shakti5385's Avatar
    Join Date
    Mar 2006
    Location
    Udaipur,Rajasthan(INDIA)
    Posts
    3,747

    Question Re: [RESOLVED] [2005] Data Grid View Problem

    I done this but now i am not able to delete the record so what i do?

  10. #10
    Frenzied Member
    Join Date
    Aug 2006
    Posts
    1,051

    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.

  11. #11

    Thread Starter
    Just Married shakti5385's Avatar
    Join Date
    Mar 2006
    Location
    Udaipur,Rajasthan(INDIA)
    Posts
    3,747

    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?

  12. #12
    Frenzied Member
    Join Date
    Aug 2006
    Posts
    1,051

    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.

  13. #13

    Thread Starter
    Just Married shakti5385's Avatar
    Join Date
    Mar 2006
    Location
    Udaipur,Rajasthan(INDIA)
    Posts
    3,747

    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?

  14. #14
    Frenzied Member
    Join Date
    Aug 2006
    Posts
    1,051

    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
  •  



Click Here to Expand Forum to Full Width