[CLOSED] How to get selected Id from grid?

  1. #1

    [CLOSED] How to get selected Id from grid?

    Hi,
    I need to get ids of selected rows from grid:

    I'm able to get ids which don't contains special char like
    -
    my code which work for normal ids:

    _selectionMemory = (this.GridPanelMain.SelectionModel.Primary as RowSelectionModel).SelectedRows.Select(x => x.RecordID).ToArray<string>);
    So How can I get id in format
    xxx-xx-xx-xxx
    ? Is it posible?

    Thanks,
    ViDom
    Last edited by Daniil; Sep 10, 2012 at 1:15 PM. Reason: [CLOSED]
  2. #2
    HI @ViDom,

    Could you provide us with a sample when this code doesn't work?
  3. #3
    Quote Originally Posted by Daniil View Post
    HI @ViDom,

    Could you provide us with a sample when this code doesn't work?
    I've figured it out. It doesn't work because I've made Id RecordFieldType to Int thats why it can't get whole Id with
    -
    char.
    When I changed RecordFieldType to string it started work :)

    This thread can be closed :)
  4. #4
    Good job! Thank you for notifying that you already solved the problem!

Similar Threads

  1. Replies: 1
    Last Post: Mar 15, 2012, 6:20 AM
  2. Replies: 1
    Last Post: Mar 11, 2012, 3:26 AM
  3. Replies: 1
    Last Post: Dec 29, 2011, 7:19 PM
  4. Grid selected IDs
    By ssenthil21 in forum 1.x Help
    Replies: 2
    Last Post: May 12, 2011, 2:59 AM
  5. How to set and clear selected row in grid
    By grishconner in forum 1.x Help
    Replies: 1
    Last Post: Oct 24, 2009, 9:55 AM

Tags for this Thread

Posting Permissions