Can't select certain rows in datagrid

Hello,
    I have a datagrid with 3 columns, that works great until you have 2 rows next to each other w/ the exact first name and last name.
When that happens, I can select the top row but I can't select the bottom row.
If I trace the onPatientSelected method, it never gets called.
here's my datagrid code below: 
<code>
            <mx:DataGrid
                id="patientList"
                dataProvider="{dataProvider}"
                change="onPatientSelected()"
                styleName="patientlist"
                width="100%"
                height="100%"
                editable="false"
                draggableColumns="false"
                resizableColumns="false" headerRelease="checkColumnSorted(event)">
                <mx:columns>
                    <mx:DataGridColumn headerText="Last Name"  dataField="LastName" />
                    <mx:DataGridColumn headerText="First Name" dataField="FirstName"/>
                    <mx:DataGridColumn headerText="Unique Id" dataField="UniqueId" sortable="false"/>
                </mx:columns>
            </mx:DataGrid>
</cod> 
Any ideas?

The strange thing is that we have datadrids all over this app that are formatted exactly the same way and this behavior never happens:
Here's another example:
<code>
<mx:DataGrid
                id="contactDataGrid"
                change="onItemSelected()"
                styleName="patientlist"
                width="50%"
                height="100%"
                editable="false"
                draggableColumns="false"
                resizableColumns="false" >
                <mx:columns>
                    <mx:DataGridColumn headerText="Name" dataField="FirstName" />
                    <mx:DataGridColumn headerText="Relationship" dataField="RelationshipToPatientTypeId"/>
                </mx:columns>
            </mx:DataGrid>
</code>

Similar Messages

  • Programmatically select multiple rows in DataGrid

    Hello,
    I'm trying to do it for days. How can i select many rows in my DataGrid in the code. In my DataGrid i have rows responsible for folders and files - existing in these folders. When user selects folder row i want to select all rows responsible for files that
    are in that folder. Of course i know which rows should be selected, but the problem is how to do it? I can add that my DataGrid is Binded to ObservableCollection(containing strings with pathes to different directories and files. Please some help.

    Hi Josef,
    I am marking this issue as "Answered". If you have any new questions or concerns about this issue, please feel free to let me know.
    Thank you and have a nice day!
    Min Zhu [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

  • I have personal iphone and a work ipad can I select certain apps to use both devices

    I have personal iphone and an ipad for work that is owned by the company. can I select certain apps or features that will transfer to both devices?

    ALWAYS sync photos to a computer, don't count on icloud to store them for you.  It does include photos from the camera roll in a backup, but that's all - and restores are not reliable when it comes to photos.
    Added info...
    Since you should always be syncing photos to your computer as you would photos from a camera, then sync from iphone to itunes/computer, then sync from itunes/computer to ipad.
    http://support.apple.com/kb/HT4083
    http://support.apple.com/kb/HT4236
    http://support.apple.com/kb/HT4486
    FOR A PC:
    On a PC, simply drag photos to the designated Photo Stream Upload folder. By default, this folder is located atC:\Users\<user name>\Pictures\Photo Stream\Uploads. You can change this location by visiting Photo Stream Options in the iCloud Control Panel for Windows.

  • How to select a row in datagrid by checking the check box in that row

    how to select a row in datagrid by checking the check box in that row.
    Im using <html:checkbox> tag, and also a VO which is in request scope. i wanna display the values in the VO in a row and corresponding to this i want a checkbox..
    Thanx in advance
    Message was edited by: me
    Hemanth@SA
    Message was edited by:
    Hemanth@SA

    Hello,
    I got the solution:
    final int pRow = row;
    final int pCol = column;
    final JTable myTable = mytable;
    SwingUtilities.invokeLater(new Runnable() {
    public void run() {
    myTable.requestFocusInWindow();
    myTable.changeSelection(pRow, pCol, true, true);

  • After I have converted PDF file to Word how can I select certain pages to save them as a new document? Thank you

    After I have converted PDF file to Word how can I select certain pages to save them as a new document? Thank you

    You've said you have a Word file and want to use some pages in the file to create a new document.
    Use Word to establish a new Word file that has the desired pages for the original Word file.
    You now have a "new document" of the desired pages.
    With Acrobat Standard or Pro installed you can create a "new document" PDF.
    If you do not have Acrobat Standard or Pro or a subscription to an online Adobe service that can create PDF from MS Word you can use the Microsoft process to create PDF that comes with MS Word.
    Be well...

  • How can I select the row after a cfgrid refresh?

    I have a form that is bound to a cfgrid.  The grid is populated from a database.  When you navigate in the grid the data displayed in the form changes to match the selected row.  I can edit the data in the form and update the database.  After updating the data I refresh the cfgrid, which then displays the updated data.
    Unfortunately the cfgrid always highlights the first row, row 0, after a refresh.  I want to highlight the same row that was highlighted when the data was edited and saved.  Can anyone advise as to how I can do that?
    I have tried setting a listener when the grid is initiated that responds whenever the store is refreshed and triggers the function refreshSelection():
    g.getStore().on('load', refreshSelection) ;
    Before the form data is saved, the row number is stored in selectedRow[0].  When the grid is refreshed, refreshSelection is run:
    function refreshSelection() {
    if (0 >= selectedRecords.length)
         return;
    alert('Selected row is Row ' + selectedRecords[0] ) ;
    g.getSelectionModel().selectRow(selectedRecords[0]) ;
    selectedRecords[0] = 0 ;
    The alert shows the correct row number each time, but highlighting the last row viewed works intermittently, and only if the alert line is active.  If I comment out the alert, this fails every time, with row 0 being highlighted.  selectedRecords[0] is reset to 0 after the attempt to select the row so that navigation through the grid, such as choosing "Next Page," will properly highlight the first row of the page rather than the last row number that was edited.
    -Rick

    Massage?
    Why not ask the masseuse who gave you the massage?

  • How can i select some row from multiple row in the same group of data

    I want to select some row from multiple row in the same group of data.
    ColumnA        
    Column B
    1                  OK
    1                   NG
    2                   NG
    2                          NG
    3                          OK
    3                          OK
    I want the row of group of
    ColumnA if  ColumnB contain even 'NG'
    row , select only one row which  Column B = 'NG'
    the result i want = 
    ColumnA         Column B
    1                         NG
    2                   NG
    3                          OK
    Thank you

    That's some awful explanation, but I think this is what you were driving at:
    DECLARE @forumTable TABLE (a INT, b CHAR(2))
    INSERT INTO @forumTable (a, b)
    VALUES
    (1, 'OK'),(1, 'NG'),
    (2, 'NG'),(2, 'NG'),
    (3, 'OK'),(3, 'OK')
    SELECT f.a, MIN(COALESCE(f2.b,f.b)) AS b
    FROM @forumTable f
    LEFT OUTER JOIN @forumTable f2
    ON f.a = f2.a
    AND f.b <> f2.b
    GROUP BY f.a

  • How can i select the rows from the 3 tables by particular column name?

    Vehicle Passing Summary table structure
              PsngSmry_ID(Number),Vehicle_iD(Number),PsngSmryTime(datetime)
    Vehicle table structure
              Vehicle_iD(Number),VehicleName(VarChar2),VehicleType(VarChar2)
    Here Vehicle_iD is the Primary Key
    Equipment Table Structure
              Eqpmt_id(Number),Vehicle_iD(Number),EqpmtName(VarChar2),EqpmtType(VarChar2)
    Here Eqpmt_id is the Primary Key and Vehicle_iD is the foreign Key
    Equipment Component Table Structure
              Eqpmt_Cmpnt_id(Number) ,Eqpmt_id(Number),EqpmtCmpntName(VarChar2),EqpmtCmpntName(VarChar2),Parent_Eqpmnt_ID(Number)
    Here Eqpmt_Cmpnt_id is the Primary Key and Eqpmt_id is the foreign Key
    The rows in the Vehicle Passing Summary table
         PsngSmry_ID Vehicle_ID     PsngSmryTime
         111111          80986246     2010/10/11
         111112          80986247     2010/10/12
         111113          80986248     2010/10/10
    The rows in the Vehicle Table
         Vehicle_iD     VehicleName     VehicleType
         80986246          Lorry          Four Wheeler
         80986247          Van          Four Wheeler
         80986248          Bus          Four Wheeler
    The rows in the Equipment Table:
         Eqpmt_id     Vehicle_iD     EqpmtName          EqpmtType
         109846          80986246          2 Axle Lorry          CAR
    109821          80986246          4 Axle Lorry          CAR
    109825          80986246          4 Axle Lorry          CAR
         109562          80986247          2 Axle VAn          CAR
    109555          80986247          3 Axle VAn          CAR
    109777          80986247          3 Axle VAn          CAR
         109587          80986248          2 Axle Bus          CAR
    The rows in the Equipment Component Table :
         Eqpmt_Cmpnt_id Eqpmt_id EqpmtCmpntName Parent_Eqpmnt_ID
         20904146          109846          Truck               
         20904147          109846          Truck
         20904148          109846          Axle               20904146
         20904159          109846          Axle               20904146
         20904167          109846          Wheel               20904148
         20904177          109846          Wheel               20904148
         20904185          109846          Wheel               20904159
         20904325          109846          Wheel               20904159
         20904188          109846          Axle               20904147
         20904189          109846          Axle               20904147
         20904195          109846          Wheel               20904188
         20904196          109846          Wheel               20904188
         20904197          109846          Wheel               20904189
         20904398          109846          Wheel               20904189
         10904146          109562          Truck               
         10904147          109562          Truck
         10904148          109562          Axle               10904146
         10904159          109562          Axle               10904146
         10904167          109562          Wheel               10904148
         10904177          109562          Wheel               10904148
         10904185          109562          Wheel               10904159
         10904325          109562          Wheel               10904159
         10904188          109562          Axle               10904147
         10904189          109562          Axle               10904147
         10904195          109562          Wheel               10904188
         10904196          109562          Wheel               10904188
         10904197          109562          Wheel               10904189
         10904398          109562          Wheel               10904189
    Note : In Equipment Component Table,the hierarchy will be Truck-->Axle-->Wheel.So
    1.the Parent_Eqpmnt_ID of Axle is Truck's Eqpmt_Cmpnt_id.
    2.the Parent_Eqpmnt_ID of Wheel is Axle's Eqpmt_Cmpnt_id.
    Now I want to write the store procedure which will take "PsngSmry_ID(Number)" as input and the o/p will be in the format :
         Eqpmt_Cmpnt_id Eqpmt_id EqpmtCmpntName Parent_Eqpmnt_ID
         20904146          109846      Truck     
         20904148          109846      Axle               20904146
         20904167          109846      Wheel               20904148
         20904177          109846      Wheel               20904148     
         20904159          109846      Axle               20904146
         20904185          109846      Wheel               20904159
         20904325          109846      Wheel               20904159
         20904147          109846      Truck
         20904188          109846      Axle               20904147
         20904195          109846      Wheel               20904188
         20904196          109846      Wheel               20904188
         20904189          109846      Axle               20904147
         20904197          109846      Wheel               20904189
         20904398          109846      Wheel               20904189
         10904146          109562          Truck     
         10904148          109562          Axle               10904146
         10904167          109562          Wheel               10904148
         10904177          109562          Wheel               10904148     
         10904159          109562          Axle               10904146
         10904185          109562          Wheel               10904159
         10904325          109562          Wheel               10904159
         10904147          109562      Truck
         10904188          109562      Axle               10904147
         10904195          109562      Wheel               10904188
         10904196          109562      Wheel               10904188
         10904189          109562      Axle               10904147
         10904197          109562      Wheel               10904189
         10904398          109562      Wheel               10904189
    **Please add these columns in the o/p **
    1.EqpmtName and EqpmtType from Eqpmt table
    2.VehicleName and Vehicle Type from Vehicle table
    3.PsngSmryTime from PassingSummary table **
    Can anyone tell me the solution?
    Edited by: 865216 on Jun 22, 2011 2:14 AM

    Hi,
    I am new to this technology;But, just wanted to help you.
    Please refer the code it might be atleast helpful for you.
    But am facing PL/SQL: ORA-00933: error and unable to resolve it.could anyone please correct this code.
    sorry if my code is totally wrong.
    Thank you,
    Rupa
    create or replace procedure Equipment_proc
    is
    begin
    DECLARE
    TYPE EQP_record IS RECORD (
    Vehicle_iD Vehicle.Vehicle_iD%TYPE,
    Eqpmt_Cmpnt_id Equipment_Component.Eqpmt_Cmpnt_id%type,
    EqpmtCmpntName Equipment_Component.EqpmtCmpntName%type,
    Parent_Eqpmnt_ID Equipment_Component.Parent_Eqpmnt_ID%type,
    Eqpmt_id Equipment.Eqpmt_id%type,
    vehicleId NUMBER);
    EQP_rec EQP_record;
    CURSOR EQP_cursor IS
    select a.Vehicle_iD,c.Eqpmt_Cmpnt_id,b.Eqpmt_id,c.EqpmtCmpntName,c.Parent_Eqpmnt_ID
    from Vehicle a,Equipment b,Equipment_Component c
    where a.Vehicle_iD=b.Vehicle_iD
    and b.Eqpmt_id=c.Eqpmt_id
    and a.vehicle_id=&EQP_rec.vehicleId;
    BEGIN
    OPEN EQP_cursor;
         FETCH EQP_cursor INTO EQP_rec;
         dbms_output.put_line(EQP_rec.Vehicle_iD,EQP_rec.Eqpmt_Cmpnt_id||','||EQP_rec.Eqpmt_id||','||EQP_rec.EqpmtCmpntName||','||EQP_rec.Parent_Eqpmnt_ID);
    CLOSE EQP_cursor;
    END;
    END;

  • Can I select certain drives only for Time Machine backup?

    I have several internal drives and several external drives connected to my MacPro desktop computer.  If I backup everything in all of the drives using Time Machine, the capacity on my designated external drive for Time Machine backup will soon be filled.  Is there any way to selectively backup via Time Machine from  only designated drives, not all drives connected (internally or externally) to my computer?  Is so, how can that be done?  I assume that Time Machine will start deleting data when its capacity is exceeded.  If that is so, and I remove the designated Time Machine drive at that point and replace it with a new drive, will the removed drive thereafter be able to be reinserted and the prior material read and transferred as needed? Is there any way to utilized Time Machine after I insert the replacement drive to only archive new material saved after the switch of drives?

    Yes, mount the drive by opening a new Finder window and clicking on your base station's name in the left column that says 'Shared'. Then double click on the drive name to mount it on your desktop. From there, open Time Machine prefs and select that mounted drive as your backup disk. Time machine will then back up to it. Theoretically.
    If you want that disk to automatically mount every time you login to your computer, go to Sys Prefs Panel and select 'Accounts'. Then click 'Startup Items'. From there, drag the mounted drive's icon from the desktop in to that startup items list. It will then auto-mount from there forward.
    I have had many problems backing up this way with Time Machine. It will, 9 times out of 10, fail over a wireless backup with an Airport Extreme Gigabit base station and a 1TB Western Digital My Book. Nothing seems to fix, so I have given up. When TM is finally fixed - I will use it. Until then, it's junk software as far as I'm concerned.
    But - best of luck. The instructions above are how it's 'supposed' to work..

  • Can you select the row in a table view without highlighting the cell?

    I have an an app with a table view which is presented modally. Cell selections in this table are saved in the parent controller so that they can be reselected if the table is reloaded after being dismissed.
    When the cell is first highlighted, I want to momentarily highlight the cell and have it fade out, which I do by unselecting the cell from the modal view controller's didSelectRowAtIndexPath by calling setSelected:animated on the table view cell.
    However, when I present the table view controller modally again and want to display the previously selected cell as selected, I don't want the cell background to be highlighted, and I'm having trouble doing this.
    In order to make sure the table view knows the cell is selected, I am calling selectRowAtIndexPath. I need to make sure the cell is selected so that I can set/unset the cell's accessoryType. However, this has the sideeffect of highlighting the cell too, which looks weird and confusing to the user.
    I've tried things like temporarily setting the cell's selection style to none, but while that stops the cell background from highlighting? I've tried setting the selectionStyle to UITableViewSelectionStyleNone, but while this prevents the cell background from highlighting, the cell text still changes to white, so it the text is invisible against the white background.
    Is there a easy way of setting a cell to selected in the table view without also changing the highlight and text colour of the actual cell? Immediately setting the cell to be unselected still makes the highlight visible for a split second.

    I tried that, but setting the highlighted property doesn't seem to affect it.
    I figured out how what I was doing wrong though. I was setting selection style UITableViewSelectionStyleNone, selecting the cell, then setting the selection style back to whatever it had previously been. This causes the background not to draw highlighted, but the text and accessory type to still draw highlighted.
    In order to fix this, I moved the code to set the cell selection style to whatever it had previously been to the didDeselectRowAtIndexPath method.

  • How can we select multiple rows in table control for module pool program?

    hi guru's
                 i cannt able to select multiple table control rows for deletion of records please give any code to select rows?
    regrards,
    satheesh.

    On the Table Control attributes there is a "Selectability" option where you choose one of: None, Single, or Multiple.  In your code you then need to pick up which rows have the selection column set to 'X'.

  • How can I hide certain rows

    I have a spreadsheet that i'm using to track my weight loss.  In column A I have dates and in Column B I have weight.  I would like to hide all rows except for Monday's.  How would I do that?

    Hi Chariot,
    There is a feature called Filtering that will hide rows according to criteria you setup. Are you displaying the day of the week in your data? If so, this is what you would filter on. If not, you just need to add a column to display the day of the week, or the day number, and filter on that.
    Could you post a screen shot of your table?
    Here's a small example:
    The formula in column B is: =DAYNAME(A)
    Quite simple. There is a button to activate the Reorganize Panel on the Toolbar. Just click on your table and then click the tool icon.
    Jerry

  • How can i use the highlight row to select the row on a report

    The row is highlighted as I move the mouse how can I select this row without having to make a column a text link.
    thanks in advance

    Hi
    Try this out.
    Create or alter a report template. In the 'Before Each Row' section paste:
    <tr onMouseOver="cOn(this);" onMouseOut="cOut(this);">
    In the 'After Each Row' section paste:
    </tr>
    In the report page definition click on the page attributes and navigate to the HTML Header section. Paste the following script into this section:
    </script>
    <script language="JavaScript1.2">
    function cOn(td){
    if(document.getElementById||(document.all && !(document.getElementById))){
    td.style.backgroundColor="#cccccc";
    function cOut(td){
    if(document.getElementById||(document.all && !(document.getElementById))){
    td.style.backgroundColor="#ffffff";
    </script>
    In the report region navigate to the 'Layout and Pagination' section and select the report template you altered above.
    Now the report row will get highlighted when you mouse over. If you want to change colors, edit the color attributes in the javascript.
    Regards
    Kiran Akkiraju

  • How to select multiple rows from List Of Values

    Hello,
    I use ADF 11g to create my list of values (LOV). I want to select multiple rows from it. but i can't.
    so how i can select many rows to set them in my adf table.
    Thank in advance

    Hi,
    LOV is map to an attribute in the viewObject so it will return only one value or more values from selected row. You can't select multiple rows from LOV.
    But you can do this by using popup which you can select multiple rows and insert the selected rows to another table.
    This blog post explain how to achieve this :
    http://husaindalal.blogspot.com/2009/11/search-from-popup-and-add-to-new-table.html#comments
    Sameh Nassar

  • The selections for synching music or artists no longer scrolls, so I can't select individual artists beyond the first few artists. How do I enable scrolling again?

    The ability to scroll through individual artists or albums and select certain ones to synch no longer scrolls, so I am unable to select any but th first few. This feature used to scroll. The problem it creates is I don't have enough storage to synch the entire music library, but now can't select certain artists to synch. I have updated to the lastest version of iTunes and it didn't help.

    I am using windows Vista and having this problem also (not exactly, but iTunes gives pop-up that "files are in use"). Acting a suggestion from another answer in this thread, I clicked on Computer and selected eject...windows did warn me that the device was in use, but also gave me a CONTINUE button, which I clicked and it was ejected...had to go back to iTunes and eject the iPod there also, but it did eject

Maybe you are looking for

  • Search Help Problem - Passing parameter between to search helps.

    I created following 2 table for entering data in PO screen using ME21N using Custom Data Tab. ZSTATE_TAB - State table  (has elementary search help ZSTATE_SH - Value of SCODE is exported) SCode(Key)     Description S001           New York S002       

  • Access denied by Application security check

    I see that others have gotten this error when logging in but I'm getting this during an application install. I have an application in workspace A that I exported. I created workspace B, using the same parsing schema and the same workspace the schema

  • Calling multiple actions in a single event of the adobe component

    Hi , We have a requirement to call both these events Java script ======== 1)app.eval("event.target.SAPValueHelp(\"" + this.somExpression + "\");"); 2)app.eval("event.target.SAPCheckFields();"); on the <b>enter</b> event of drop down list on adobe for

  • [SOLVED] Black Screen in Neverwinter Nights

    I'm trying to get Neverwinter Nights Platinum (4 CD version) working, using these instructions.  When I run the nwn script however, I get a black screen.  The sound is working but the screen is black.  I'm running 64-bit arch but I've installed lib32

  • Downloaded CS5 Trial version, photoshop doesn't work

    I just downloaded the trial version of CS5.  All the applications open and work except photoshop.  When you open it it states "Some of the application components are missing from the application directory, please reinstall the application".  If I un-