Find row in Dataview using ID but Name sorted in alphabetical order

Hi,
I have a dataview with 2 columns, ID and Name, where it is sorted by"Name".
I want to find a row using the ID, namely curID. But the following doesn't seem to work, as I believe my dataview was sorted using the Name column. How can I sort the dataview with "Name", but be still be able to "Find" using its ID?
dv.Sort = "ID ASC"
rowIndex = dv.Find(curID)
Please advice. Your help would be greatly appreciated.

Use a plain old for loop then. You could define your own method:
private static DataRowView FindRow(DataView dv, int id)
foreach (DataRowView rowView in dv)
if (Convert.ToInt32(rowView["ID"]) == id)
return rowView;
return null;
And call it like this:
DataRowView dataRowView = FindRow(dv, curID);
if(dataRowView != null)
//found...
Please remember to mark all helpful posts as answer and/or helpful.

Similar Messages

  • I have problem with my wifi in 4 S, i cant connect to any wifi itried resetting network setting and reset all setting but the result was the same, its only keeps searching for wifi and cant find any, itried to use OTHER but also didnt work.please help me

    i have problem with my wifi in 4 S, i cant connect to any wifi itried resetting network setting and reset all setting but the result was the same, its only keeps searching for wifi and cant find any, itried to use OTHER but also didnt work.please help me???

    If Join was on then your home wi-fi must be set to Non-Broadcast.  If you did not set this up (maybe your provider did) then you will need to find the Network Name they used, and any password they used.  The SSID is Security Set ID and to see more try http://en.wikipedia.org/wiki/SSID .  Basically it is the name used to identify your router/network.  A lot of times the installer will leave it set as LinkSys, or Broadcom or whatever the manufacturer set it as for default.  Your best bet is to get whoever installed it to walk you through how they set it up, giving you id's and passwords so you can get in.  HOWEVER, if you are not comfortable with this (if you set security wrong, etc.) you would be well ahead of the game to hire a local computer tech (networking) to get this working for you.  You can also contact the vendor of your router and get help (if it is still in warranty), or at least get copies of the manuals as pdf files.  Sorry I can't give you more help, I hope this gives you an idea where to go from here to find more.

  • HT2101 I can't find the keyboard by using iMessage, but I can by using email or whatsapp? How I reset the keyboard on iMessage?

    I can't find the keyboard by using iMessage, but I can by using email or whatsapp? How I reset the keyboard on iMessage?

    Did you tap in the box at the bottom of iMessage?
    If you did and no keyboard is showing: Do a reset
    Reset: Hold down the Sleep/Wake button and the Home button at the same time for at least ten seconds, until the Apple logo appears. Note: You will not lose any data
    If that didn't helped, double tap Home button, delete the Message app and reset again.

  • I want to print my iTunes library of songs in name of song alphabetical order I tried hitting on name but it printed in artist alphabetical order?

    I Want to PRINT my iTunes library of songs in Alphbetical Name of song order, I have tried hitting on name but it prints out in artist alphabetical order???  Please adivise me on this issue

    - Try looking at the previous discussions on the right side of this page under the heading "More Like This".
    - Also try posting in the iTunes forum.

  • WHY does the finder insist on rearranging the files in a folder in alphabetical order even when I have selected "none" in the preferences for file organization?

    WHY does the finder insist on rearranging the files and/or documents in a folder in alphabetical order even when I have selected "none" in the preferences for file organization? Even after I numbered the documents/folders to keep them in my preferred order, it will still displace them occasionally. This is becoming increasingly frustrating!
    Is this a "Pages" issue or "FInder"? The vast majority of documents I use are in Pages, but there are also Numbers, PDFs, jpegs and a few other applications involved. This never happened before I upgraded to Mountain Lion; in Tiger, the documents (mostly Appleworks) and files stayed where I wanted them to be.
    I am visually oriented, and prefer to arrange items in a folder in an order that makes them easier for me to access, which is often NOT alphabetical.
    Can anyone suggest a solution? Please??
    Thank you.
    Sara

    nbar,
    Thank you for your reply.
    However, I do not understand what you mean by "user account." I am the only user, and can find no options for "user" or "guest." The parental controls have always been off, as there are no other people who have access to my computer.
    Frank,
    Thank you for your reply.
    All my documents, files and folders are in icon view, Arranged By: none in both view and view options. This arbitrary rearranging does not happen all the time, only when I make a substantial change to one of the documents in the file or folder. I'm not sure what you mean by "column heading."
    MichaelLAX,
    Thank you for your reply.
    I know, to my sorrow, that Appleworks does not work with Mountain Lion. I spent at least three months converting approximately 2,000 Appleworks documents to Pages, Numbers, Bento (for databases) and Touchdraw (for drawings). So this is not the problem; but as I said, I did not have this rearranging problem with Appleworks - the icons stayed where I wanted them to be. I still miss the ease and reliability of Appleworks, darn it!
    Frank,
    Thank you for your second reply.
    I do have the Sort By: in view options as well as in view set to "none."   The finder still insists on rearranging, but only when I have made a substantial change to a document in that file or folder.
    Any futher thoughts?
    xdab, 
    Thank you for your reply.
    "Are you are using icon view, but for some reason the finder moves files around? is that the problem?"
    YES!! This is exactly the problem.
    "If this operation is successful then erase the original and rename the new one to the name originally chosen by the user."
    This seems like a lot of trouble, especially as I often work on several documents at the same time.
    "By the way, the finder has a "clean up by" menu that rearranges icons in one of the standard orders, there are shortcuts that produce the same effect, for example <option><cmd>1 sorts them by name. Is it possible that this shortcut was typed by mistake without you noticing?"
    I do know about this "clean up by" option, and avoid it like the plague! So I doubt this is the issue, and I infrequently use keyboard shortcuts like this anyway.
    Thanks all who replied. None of the suggestions seem to work, however. Any others out there?
    Regards,
    Sara

  • I am desperate to transfer a file from my mac laptop to my ipad.I was told to use iphoto ,but it scrambles up the order I want the pictures ,how can I move the pictures to the sequence I want?Any help is greatly appreciated :)

    I am desperate to get my photos onto my ipad for a presentation tomorrow.The photos are from different times and dates.When I put the photos onto iphoto they all come out in a completely different order to what I want.How can I arrange this so that the pictures are in the correct order.Thank you for assistance .Delia

    Learn how things work
    files have no order at all  --  the program that views them sets the order  --  in iPhoto you can do this with a number of sorts on the photo data or manually  --  in a file viewer like the finder or windows explorer there are a number of sorts on the file data (not the photo data) that you control - so in the finder you can sort by alpha file name, date or file creation or last modification, size of file, etc
    So having the file sdisplay in your selected order first off involves understanding the difference between file data and photo data, then making a decision how you want them to display in the file system (and verifying that the file system you plan to use supports this) and then use the iPhoto export to create files that will match the sort you want if iPhoto supports this
    the most common way is to display the files in alpha file names order at the destination - so you need to export the files so their file names are in alpha sort order using the sequential numbering option of export
    LN

  • How can I find the largest files on my hard drive (sorted in descending order of size)?

    To make most efficient use of Time Machine backup, I would like to have the option to exclude certain larger files that I don't need to save in case of a disk crash (e.g. a Windows partition under Parallels Desktop, which is backed up at the office anyway) etc.
    I can't figure out how I can scan my entire hard drive and obtain a list of all files in descending order of size, irrespective of within which subdirectories such files are hidden. Anyone having an idea on how this simple task can be accomplished?
    Thanks,
    AnLe41

    While Finder is active, press Command-F (Find in the File menu).
    In that window you can set search criteria. In the second sub-toolbar should be a couple of buttons representing pulldown menus; by default, the first usually shows "kind". Click that one.
    In the menu that opens, if "Size" or "File Size" is not available, select "Other". Then in the new window select "Size" or "File Size" and okay the window. From then on that choice will be available in the first pulldown menu.
    You can use that to search your drive.
    Note - by clicking the "+" button at the far right of the strip containing the pulldown menus, you can add additional search criteria, thus restricting a search to exactly what you want.

  • Cross-tab column name sorting

    Hi
    I created a cross-tab report in Bi Publisher, the sorting in the column names is sorted in alphabetical order. How do I customize this in the order I expected?
    Thank you in advance,
    Jean

    Thank you Jorge!
    I used the pivot table to create the template in word. I check the link and it is what I need. But the template I created is so different. I am very new to BI Publisher. the following is the what I have in the field browser:
    crosstab:c547;"//ROW";"ETHNIC{,o=a,t=t}";"S_TYPE{,o=a,t=t}";"EMP_ID";"count"?>
    <?horizontal-break-table:1?>
    <?for-each@column:$c547//C1?>
    <?./H?>
    <?end for-each?>
    <?for-each:$c547//R1?>
    <?./H?>
    <?for-each@cell:.//R1C1?>
    <?./M1?>
    <?end for-each?>
    <?./T1?>
    <?end for-each?>
    <?for-each@cell:$c547//C1?>
    <?./T1?>
    <?end for-each?>
    <?$c547//M0/M1/T?>
    How do I make the S_TYPE in my order, like the sample you gave me (Wednesday before Thursday)?
    Thanks,
    Jean

  • Finder files always in reverse alphabetical order in List View

    Hi all,
    Ever since I upgraded to Mountain Lion from Snow Leopard, I've experienced an intermittent quirk with Finder. I generally keep most files in folders by alphabetical order. But in my Applications folder, Finder is stuck on keeping them in reverse alphabetical order, which is annoying. I've never had this issue in previous releases of OS X becuase there was always the small triangle to invert order, but this triangle doesn't appear in my Applications folder. Only my Applications folder has a weird white bar with Name, Size, etc, as opposed to the gray one that appears in every other folder in the OS.
    I have tried to remedy this via the following:
    Changing from List View to other views--this puts them in normal alpha order, but I like apps in List View so I can see many of them at a glance
    Sorting by other categories (file size, etc.) and then switching back
    Clicking on the name bar with every possible combination of buttons (Fn + click, Ctrl + click, etc.)
    All to no avail. Is anyone else experiencing this problem? It only happens with the Applications folder, and only in List View.
    Thanks!

    I also have this problem, and the work around works for me, but...
    This has got to be a bug, right?  There is nothing, anywhere that I can see, that controls whether it is alpha ascending or alpha descending.  The "fix", such as it is, is to ignore the Arrange By menu and use the column headers to select the sort order. 
    In fact, to bulletproof it (because I will forget eventually) the best solution would be to remove the "arrange" menu altogether because it does not do anything that sorting by column headers does not do.  In fact, it does less.  In even more fact, it does worse than less. 
    Apple is keenly persuing minimalism.  So why does the arrange menu exist?  And if it does exist, why did no-one test that it works rationally?
    The corollary of all this is that the Arrange By menu does the same thing as clicking the menu headers, but when you use it, it disables them. 
    I have been banging my head on my desk since I bought my new machine with Mt Lion on it about the wretched headers not setting the sort order and it is because some - numbskull is not the _only_ word that comes to mind - has decided one selection mechanism for the sort function should disable the other. ¿Eh?

  • I downloaded Dreamweaver CC 2014.1, started using it but cannot find Show Fluid Grid Layout Guides button, Resize LI.link sizing handle and 'move up a Row' arrow. Where can I find them?

    I downloaded Dreamweaver CC 2014.1, started using it but cannot find Show Fluid Grid Layout Guides button, Resize LI.link sizing handle and 'move up a Row' arrow. Where can I find them?

    You have the latest version (CC 2014.1 or 2014.1.1) in which the interface condenses Design View with Live View buttons in normal layouts.  See screenshot.
    However, in FGLayouts, Live View is the only option which poses some editing problems and has been highly criticized.
    Is there any way to display the Design View in fluid grid pages?
    New Features in CC 2014.1 October Release
    http://helpx.adobe.com/dreamweaver/using/whats-new.html
    New Features in CC 2014.1.1 February Release
    https://helpx.adobe.com/dreamweaver/using/whats-new.html#Enhancements%20to%20Live%20View%2 0editing
    You can disable this restriction by adding an X to the FGLayout CSS.
        Dreamweaver Fluid Grid Properties
        dw-num-cols-mobile:      X 4;
        dw-num-cols-tablet:        8;
        dw-num-cols-desktop:    12;
        dw-gutter-percentage:    25;
    =====================================
    Having said that, it might just  be simpler to revert to an earlier version.  Log-in to Creative Cloud Desktop app.  Go to Filters & Versions > Previous Version.  See screenshot.
    Nancy O.

  • I'm trying to find the plugin for camera raw, but all I can find is the page with the cameras that are supported. But I don't find how to find and install the actual plugin. The end name is ARW

    I'm trying to find the plugin for camera raw, but all I can find is the page with the cameras that are supported. But I don't find how to find and install the actual plugin. The end name is ARW, and all I need is to find WHERE I can download it. Thanks.

    cr is installed by updating your app.  use help>update, or update manually
    pre cc updates:  http://www.adobe.com/downloads/updates/
    cc updates:  http://prodesigntools.com/adobe-cc-updates-direct-links-windows.html
    cc 2104 updates:  http://prodesigntools.com/adobe-cc-2014-updates-links-windows.html

  • Where to find the best application for cleaning out my MacBook Air with OS X 10.7.5? I've been using MacKeeper but believe it's slowing down my laptop considerable.

    where to find the best application for cleaning out my MacBook Air with OS X 10.7.5? I've been using MacKeeper but believe it's slowing down my laptop considerable. Thank you.

    How to maintain a Mac
    1. Make redundant backups, keeping at least one off site at all times. One backup is not enough. Don’t back up your backups; make them independent of each other. Don’t rely completely on any single backup method, such as Time Machine. If you get an indication that a backup has failed, don't ignore it.
    2. Keep your software up to date. In the Software Update preference pane, you can configure automatic notifications of updates to OS X and other Mac App Store products. Some third-party applications from other sources have a similar feature, if you don’t mind letting them phone home. Otherwise you have to check yourself on a regular basis. This is especially important for complex software that modifies the operating system, such as device drivers. Before installing any Apple update, you must check that all such modifications that you use are compatible.
    3. Don't install crapware, such as “themes,” "haxies," “add-ons,” “toolbars,” “enhancers," “optimizers,” “accelerators,” "boosters," “extenders,” “cleaners,” "doctors," "tune-ups," “defragmenters,” “firewalls,” "barriers," “guardians,” “defenders,” “protectors,” most “plugins,” commercial "virus scanners,” "disk tools," or "utilities." With very few exceptions, this stuff is useless, or worse than useless. Above all, avoid any software that purports to change the look and feel of the user interface.
    The more actively promoted the product, the more likely it is to be garbage. The most extreme example is the “MacKeeper” scam.
    As a rule, the only software you should install is that which directly enables you to do the things you use a computer for — such as creating, communicating, and playing — and does not modify the way other software works. Use your computer; don't fuss with it.
    Safari extensions, and perhaps the equivalent for other web browsers, are a partial exception to the above rule. Most are safe, and they're easy to get rid of if they don't work. Some may cause the browser to crash or otherwise malfunction.  Some are malicious. Use with caution, and install only well-known extensions from relatively trustworthy sources, such as the Safari Extensions Gallery.
    Never install any third-party software unless you know how to uninstall it. Otherwise you may create problems that are very hard to solve.
    4. Beware of trojans. A trojan is malicious software (“malware”) that the user is duped into installing voluntarily. Such attacks were rare on the Mac platform until sometime in 2011, but are now increasingly common, and increasingly dangerous.
    There is some built-in protection against downloading malware, but you can’t rely on it — the attackers are always at least one day ahead of the defense. You can’t rely on third-party protection either. What you can rely on is common-sense awareness — not paranoia, which only makes you more vulnerable.
    Never install software from an untrustworthy or unknown source. If in doubt, do some research. Any website that prompts you to install a “codec” or “plugin” that comes from the same site, or an unknown site, is untrustworthy. Software with a corporate brand, such as Adobe Flash Player, must be acquired directly from the developer. No intermediary is acceptable, and don’t trust links unless you know how to parse them. Any file that is automatically downloaded from a web page without your having requested it should go straight into the Trash. A website that claims you have a “virus,” or that anything else is wrong with your computer, is rogue.
    In OS X 10.7.5 or later, downloaded applications and Installer packages that have not been digitally signed by a developer registered with Apple are blocked from loading by default. The block can be overridden, but think carefully before you do so.
    Because of recurring security issues in Java, it’s best to disable it in your web browsers, if it’s installed. Few websites have Java content nowadays, so you won’t be missing much. This action is mandatory if you’re running any version of OS X older than 10.6.8 with the latest Java update. Note: Java has nothing to do with JavaScript, despite the similar names. Don't install Java unless you're sure you need it. Most people don't.
    5. Don't fill up your boot volume. A common mistake is adding more and more large files to your home folder until you start to get warnings that you're out of space, which may be followed in short order by a boot failure. This is more prone to happen on the newer Macs that come with an internal SSD instead of the traditional hard drive. The drive can be very nearly full before you become aware of the problem. While it's not true that you should or must keep any particular percentage of space free, you should monitor your storage consumption and make sure you're not in immediate danger of using it up. According to Apple documentation, you need at least 9 GB of free space on the startup volume for normal operation.
    If storage space is running low, use a tool such as the free application OmniDiskSweeper to explore your volume and find out what's taking up the most space. Move rarely-used large files to secondary storage.
    6. Relax, don’t do it. Besides the above, no routine maintenance is necessary or beneficial for the vast majority of users; specifically not “cleaning caches,” “zapping the PRAM,” "resetting the SMC," “rebuilding the directory,” "defragmenting the drive," “running periodic scripts,” “dumping logs,” "deleting temp files," “scanning for viruses,” "purging memory," "checking for bad blocks," "testing the hardware," or “repairing permissions.” Such measures are either completely pointless or are useful only for solving problems, not for prevention.
    The very height of futility is running an expensive third-party application called “Disk Warrior” when nothing is wrong, or even when something is wrong and you have backups, which you must have. Disk Warrior is a data-salvage tool, not a maintenance tool, and you will never need it if your backups are adequate. Don’t waste money on it or anything like it.

  • Automatic Row Processing (DML) using synonym name instead of table

    I want my APEX form to select info using the table name but perform all the DML (add, change, delete) using the synonym name. I created the form using the wizard and went into the "Process Row of xxx" process that was created. I tried changing the table name to synonym name under the 'Source: Automatic Row Processing (DML)' section, but it still uses the table name. Is this possible or do I need to manually create processes using the synonym names

    Hi,
    when I change the Table Name property in the "Automatic Row Processing (DML)" process to a non existing table it raises an error when I run the page and try to save something. So it's actually using the value.
    Does the synonym point to the same table or a different table? What is the intention behind selecting from the table but updating through the synonym?
    Patrick
    My APEX Blog: http://www.inside-oracle-apex.com/
    The APEX Builder Plugin: http://builderplugin.oracleapex.info/
    The ApexLib Framework: http://apexlib.sourceforge.net/

  • My Ipad is frozen. I've tried to restore it using Itune, but it asks me to desable find me, but I cannt, cuz it is not working. What to do?

    My Ipad is frozen. I've tried to restore it using Itune, but it asks me to desable find me, but I cannt, cuz it is not working. What to do?

    How can I unlock my iPad if I forgot the passcode?
    http://www.everymac.com/systems/apple/ipad/ipad-troubleshooting-repair-faq/ipad- how-to-unlock-open-forgot-code-passcode-password-login.html
    iOS: Device disabled after entering wrong passcode
    http://support.apple.com/kb/ht1212
    How can I unlock my iPad if I forgot the passcode?
    http://tinyurl.com/7ndy8tb
    How to Reset a Forgotten Password for an iOS Device
    http://www.wikihow.com/Reset-a-Forgotten-Password-for-an-iOS-Device
    Using iPhone/iPad Recovery Mode
    http://ipod.about.com/od/iphonetroubleshooting/a/Iphone-Recovery-Mode.htm
    Saw this solution on another post about an iPad in a school environment. Might work on your iPad so you won't lose everything.
    ~~~~~~~~~~~~~
    ‘iPad is disabled’ fix without resetting using iTunes
    Today I met my match with an iPad that had a passcode entered too many times, resulting in it displaying the message ‘iPad is disabled – Connect to iTunes’. This was a student iPad and since they use Notability for most of their work there was a chance that her files were not all backed up to the cloud. I really wanted to just re-activate the iPad instead of totally resetting it back to our default image.
    I reached out to my PLN on Twitter and had some help from a few people through retweets and a couple of clarification tweets. I love that so many are willing to help out so quickly. Through this I also learned that I look like Lt. Riker from Star Trek (thanks @FillineMachine).
    Through some trial and error (and a little sheer luck), I was able to reactivate the iPad without loosing any data. Note, this will only work on the computer it last synced with. Here’s how:
    1. Configurator is useless in reactivating a locked iPad. You will only be able to completely reformat the iPad using Configurator. If that’s ok with you, go for it – otherwise don’t waste your time trying to figure it out.
    2. Open iTunes with the iPad disconnected.
    3. Connect the iPad to the computer and wait for it to show up in the devices section in iTunes.
    4. Click on the iPad name when it appears and you will be given the option to restore a backup or setup as a new iPad (since it is locked).
    5. Click ‘Setup as new iPad’ and then click restore.
    6. The iPad will start backing up before it does the full restore and sync. CANCEL THE BACKUP IMMEDIATELY. You do this by clicking the small x in the status window in iTunes.
    7. When the backup cancels, it immediately starts syncing – cancel this as well using the same small x in the iTunes status window.
    8. The first stage in the restore process unlocks the iPad, you are basically just cancelling out the restore process as soon as it reactivates the iPad.
    If done correctly, you will experience no data loss and the result will be a reactivated iPad. I have now tried this with about 5 iPads that were locked identically by students and each time it worked like a charm.
    ~~~~~~~~~~~~~
    Try it and good luck. You have nothing more to lose if it doesn't work for you.
     Cheers, Tom

  • Multi Row Selector using Generic Column Names (parse query at runtime only)

    Hi,
    I created a tabular report which had a multi row select in it - got the deleting working fine.
    Am now creating a second tabular report, but because of the SQL:
    select
    "ID",
    "ID" ID_DISPLAY,
    "RESNUMBER",
    "RESDESCRIPTION",
    decode(RESTYPE,'R','Right Party','W','Wrong Party'),
    decode(DMCFLAG,'Y','Yes','N','No'),
    decode(SALEFLAG,'Y','Yes','N','No')
    from "CALL_RESULTS"
    I have to select the option Use Generic Column Names (parse query at runtime only) otherwise I cannot save the form.
    My problem is I am now unable to add a multi row selector to the tabular form. If I do and run the form I get the following error - failed to parse SQL query: ORA-00904: "COL11": invalid identifier. Also when I go back and edit the form the multi row selector has been removed.
    Can anyone tell me why I can't add a row selector like I previously could?
    Regards
    Simon

    Arie,
    I added aliases and to the decode columns, and I can now add a row selector to the form without any problems.
    Thank you very much for your help.
    Regards
    Simon

Maybe you are looking for

  • Can I set up multiple iCloud accounts

    Would like to set up more than one iCloud account, each with own calendars and contacts and be able to access readily from all my devises. I realized can create separate calendars & contact groups within an account but I want complete separation.

  • One Time Password (OTP) on mobile/email required in Oracle Apps R12

    Dear All, Good Day! Hope you all are doing well. My management needs OTP on mobile/email for log-in into Oracle APPs R12 for some key users in our Organization. Let me explain the requirement is detail, When user log-in to oracle apps by entering his

  • Pass value Process request  to Process Form Request

    Hi, Can any one tell me how we can pass particular value from process request to process form request? Thanks

  • May I get this program converted to readable in Labview 2010?

    May I get the following programs converted to readable in Labview 2010? I think the real files are in Labview 2013! Thank you Solved! Go to Solution. Attachments: Loop for RAE Read.vi ‏13 KB Test to separate bits from Binary.vi ‏9 KB

  • ORA-30648 - missing LOCATION keyword

    All, I am attempting to import via datapump an exported file (2 tables) from our lab to our production database. The job is submitted and fails within 15 seconds due to the following error: ORA-31693: Table data object "MYDATA"."TABLE1" failed to loa