CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 1 of 1

Threaded View

  1. #1
    Join Date
    Dec 2002
    Posts
    18

    don't want Datagrid to select row on click

    Hi,
    I have a datagrid with enabled=true and readonly=false. Enabled must be true because otherwise I dont get the Mouseevents.
    The problem is that it should not be possible to select a row. I can do this by setting currentrowindex = -1, but by the next click I get an indey out of range.

    How can I just disable the selection of rows?

    thank you!

    Edit: grid.unselect(grid.currentrowindex) somehow does nothing at all.
    Last edited by Lobo; October 11th, 2005 at 08:49 AM.

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

Featured