Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Join Date
    Jan 2007
    Posts
    155

    DataGrid: Highlight Selected Row

    Dear All
    I have a tree object and a datagrid object.
    When I select a node from the tree, the data in the DataGrid plugin is automatically updated. How do highlight a specific default row in the Datagrid plugin when the data is refreshed (without performing a mouse over)
    Thanks
    Pakapaka

  2. #2
    Join Date
    May 2006
    Posts
    5,380
    you can use Grid.SetSelectedRange to set the selected item

    and use Grid.EnsureVisible to make sure the selected item is visable in the grid
    Open your eyes to Narcissism, Don't let her destroy your life!!

  3. #3
    Join Date
    Jan 2007
    Posts
    155
    Thanks but I should clarify
    ....when I select a random tree node, the data is refreshed in the Datagrid AND the first row in the Datagrid is automatically selected. However I need to have the first row HIGHLIGHTED whenever I select a different tree node

    Correct me if am wrong, but the Ensure.Visible command only makes sure I dont have to scroll up or down to see the row, it does not HIGHLIGHT the row
    Yours

    Pakapaka

  4. #4
    Join Date
    May 2006
    Posts
    5,380
    no it dose not, thats just to make sure its visable as i dident know you want to select the first row

    Grid.SetSelectedRange sets the selected/highlighted item or range of items,

    to select the 1st item use

    Code:
    Grid.SetSelectedRange("Grid", 1, 0, 1, 0, true, true);
    and to highlight all cell's in the row set the grid to list mode

    Code:
    Grid.SetListMode("Grid", true);
    Open your eyes to Narcissism, Don't let her destroy your life!!

  5. #5
    Join Date
    Jan 2007
    Posts
    155
    ...yep, that does it . Thanksssss

Similar Threads

  1. Checking to see if a combo box has been selected.
    By Barney in forum Setup Factory 7.0
    Replies: 2
    Last Post: 06-19-2008, 02:33 AM
  2. Replies: 0
    Last Post: 11-07-2007, 02:15 PM
  3. simple grid question
    By qwer in forum AutoPlay Media Studio 6.0
    Replies: 2
    Last Post: 08-22-2007, 03:36 AM
  4. Problem List Box getting selected values
    By brianlesker in forum Setup Factory 7.0
    Replies: 1
    Last Post: 02-12-2007, 04:52 AM
  5. Datagrid Plugin Issue
    By bule in forum AutoPlay Media Studio 6.0
    Replies: 3
    Last Post: 02-27-2006, 02:09 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts