Databound Combobox - First item changes to previous selection when clicked again

Hi All,
I have just written my first vb.net app using VS2014 and everything is working perfectly except the same weird issue is happening on 2 comboboxs I have...
Basically I have a Vehicles combobox and a Departments combobox (both created by dragging the field from Data Sources after setting it to combobox onto the form creating a databinding). When the user has made their selection they hit a show operations button
which then does things depending on the selections made. 
The tables come from a SQL Server.
The sql statement for my Departments TableAdapter is:
SELECT        Code, Department
FROM            Departments
ORDER BY DisplayOrder
Setup of combobox:
Use Data Bound Items is ticked
Data Source = DepartmentsBindingSource
Display Member = Department
Value Member = Code
Selected Value = (none)
This image show a correct list for the department CB (bored of typing combobox) when it is first clicked.
I select Finishing, then.
This image shows what I get on the second click (which can literally be straight after as though the wrong selection was made the first time - I say this as clicking my Show Operations button has no effect on the behaviour).
Basically the top item changes to be whatever the previous selection was. If I had chosen Construction it would have read Construction, Construction, Finishing.
The same thing is happening on the Vehicles CB - I wont explain that as it is the same as above.
I have been googling this for several hours but cannot find any other example of this issue. I may have done something stupid but hopefully not.
If you could please shed some light on why these combobox's are behaving this way I would be VERY grateful.
I am trying to learn as much as I can so if someone could actually explain why this is doing this rather than just a one line fix (which would be better than no fix at all) it would be appreciated.
Note: I have no code associated with event / index changes on either box in any way. I reference their current values once I have click my Show Operations button.
Anyway I hope the above is nice and clear for you.
Thanks again,
Paul.

Thank you for shairng your experience here.
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.

Similar Messages

  • I try to find something on my iPad, many results are emails, when I push on an email I can't see the email, because I get ever the first email,or the previous selected email in my inbox. How can I see the email selected?

    I try to find something on my iPad, many results are emails, when I push on an email I can't see the email, because I get ever the first email,or the previous selected email in my inbox. How can I see the email selected?

    Is your Yahoo account set up as POP3 or IMAP?

  • How to make it selected when clicked and open popup

    Hi,
    I 've a form in the parent page with many form elements.
    I've 2 radio buttons with values "Yes" and "No". I am opening a modal popup when clicked on "Yes" radio button. The modal popup is opening fine.
    But when I click "Yes", it' s not selected. After modal popup is closed, when I return to parent page, the option "Yes" is still not selected.
    How to make it selected when clicked and open popup?

    Perhaps try moving the application to your preferred desktop and then right-click it's dock icon > options > Assign to This Desktop.

  • Pivot Table, "Insert Page Break After Each Item" Setting Only Works for the First Item Change

    I have a flattened pivot table generated from Powerpivot and I would like to insert a page break for each change in the row item.
    When I use the pivot table Field Settings>Insert Page Break After Each Item, Excel inserts the first page break then returns to normal pagination for the rest of the output.
    Is there another setting required to maintain the page breaks after the item change?
    Thanks.

    We are experiencing the same problem. Did you ever find a solution?

  • Get the first item value of previous record in a multi record block

    Hai,
    I have a multi record block with four items.I should get the first item value of the previous record so that I can increment its value in the current record.
    Thanks.........

    If you want a distinct value in each row or to be able to retrieve the records in the same order they were written then you should use a sequence.
    If you want to retrieve the records in the same order they were created in the block then you will need a diffferent solution to the one you outline here since a user could enter a new record between two others.
    I posted this a while back in response to someone who was using a sort_key item and resetting it for each row when a new record was inserted:
    If you make the sort_key bigger then you have much more room to insert new rows in between existing rows without having to reset all the sort_keys.
    Eg. you have rows with sort_keys of 129282000000000000 and 129283000000000000 (you can have more zeros if you want) and you want to insert a row in between. if you're using oracle forms then the user would have to click on the first of these rows and then do 'insert'. in your insert process you would store the sort keys of the current record and the one below, create a blank record in between and set the sort_key of that record to the average of the other two. you will be able to insert many new rows in between the original 2 before running out of space in the sort_key field.
    the method above is not sufficient, there are some other cases to consider:
    1) when the user is on the last record of the block then you will just create a new record with sort_key set to a greater number than the row before. you can have the sort_key defined as number(38) and to safely allow you to enter 1000 rows each new row would normally be 10E33 greater than the previous one.
    2) when the user is entering the first record then just set the sort_key to 10E33.
    3) on the off-chance that you do insert a great number of records and cannot insert another in between then you would need to alert the user, process the records so that the sort_keys are evenly spaced and requery the block. this processing could be scheduled nightly to make this eventuality even less likely.
    4) make sure the user cannot run the default 'clear_record' procedure. this would break my method as well as yours!
    James.

  • How to show valid field items based on previous selected field

    I am trying to use BC Web Apps to help my customers find products for their specific motor vehicle.
    By selecting the vehicle make and then the model. e.g. Chevrolet and then Camaro.
    This will then bring up a table with all the cosponsoring equipment part numbers.
    At the moment the closest I can get is two dropdown lists one with all the vehicle makes and another with every vehicle model.
    If I select Chevrolet I only want to see Chevrolet models in the dropdown list.

    Hi 2932464,
    2932464 wrote:
    Hi,
    I have a set of text Field items in oracle apex:
    Order Number
    Revision Number
    When we open the report, revision should be hidden.
    Only when the user enters unique order number (non-duplicate order numbers), revision number should be visible.
    If he enters duplicate order number, revision number should be hidden.
    Please help.
    Giving you example how to achieve this.
    Step 1. Create three Page Items
        1) P1_ORDER_NO - Text Field
        2) P1_REVISION_NO - Text Field
        3) P1_ENABLE_DISABLE_REVNO  - Hidden,Value Protected - No
    2. Create 3 Dynamic Actions
    1) Disable revision number on page load
        Event - Page Load
        Action - Disable
        Fire When Event Result Is  - True
        Selection Type - Item
        Item - P1_REVISION_NO
      2) Check duplicate order number
        Event - Change
        Selection Type - Item(s)
        Item(s) - P1_ORDER_NO
        Condition - is not null
        Action - Execute PL/SQL Code
        Generate opposite false action - Unchecked
        Fire When Event Result Is  - True
        Fire on page load - Unchecked
        Stop Execution On Error - Checked
        Wait for Result - Checked
        PL/SQL Code -
    declare
    l_count number;
    begin
      select count(*) into l_count
        from emp
       where empno = :P1_ORDER_NO;
    if l_count > 0 then
      :P1_ENABLE_DISABLE_REVNO := 1;
    else
      :P1_ENABLE_DISABLE_REVNO := 0;
    end if;
    end;
    Page Items to Submit = P1_ORDER_NO
    Page Items to Return  = P1_ENABLE_DISABLE_REVNO
    3 ) Enable and Disable Revision Number
        Event - Change
        Selection Type - Item(s)
        Item(s) - P1_ENABLE_DISABLE_REVNO
       condition - greater than or equal to
       value  - 1
       Action - Disable
       Fire on Page Laod - Unchecked
       Generate opposite false action - checked
       Selection Type = Item(s)
       Item(s) - P1_REVISION_NO
    Hope this helps you,
    Regards,
    Jitendra
    DER_NO

  • [Flex 4.5.1] How to prevent Radio Button from being selected when clicked on? No Changing Event?

    I have a very common use case where you have a few radio buttons and only one can be selected at a time. Some of them are basic and on click should be selected right away, but other are more complex and open a pop up which requires some additional user selections after which the user selected OK or CANCEL for example and only after that the selection of the radio button should be applied programatically.
    So to solve this issue I've come up with 2 workarounds:
    1) make the entire group, that holds the radio button, act as a button with buttonMode="true" mouseChildren="false" and programatically change the radio button within it.
    2) hold the current radio button selection in a variable and in the changeHandler of that radio button return the selection back to what was selected before. But this also causes a small flickering of the radio button which gets selected and deselected immediately after that.. not cool.
    So my question is... is there something I am missing that could do the job without these workarounds... like a Changing event which I use for the ButtonBar but I can't find on the RadioButton or RadioButtonGroup... thanks!

    Hi,thanks for the reply. Actually that was my third option, but not sure if it's very good also..
    Here is a simple scenario:
    User must select between 2 radio buttons:
    1) no volume -> sets variable volume=0 and selects the radio button (that is the normal use case)
    2) set volume -> opens up a pop up with a list that has a X button to close and 4 options: 25% volume, 50% volume, 75%, 100%
    At this point the set volume radio button should not be selected and the user has 2 choices:
    -> hit the X button to close - nothing changes and no volume radio button is still selected and volume is still = 0
    -> hit one of the volume % buttons -> the set volume radio button gets selected and the variable volume=25/50/75/100 depending on the button selected by the user.
    That's a pretty common scenario and it's bugging me that I can't easily alter the radio button selection logic since whenever I click it, it gets selected and I can't put a logic in between in a standard way. This should apply to any component with selection, just like ButtonBar has it with the Changing event.
    So is there any other more convenient way to accomplish this scenario that you could recommend?
    Thanks!

  • Incorrect data value selected when clicking on slicer entry in Excel Services

    We have uploaded various Excel 2013 files containing pivot tables to Sharepoint 2013 and viewed the pivot tables in a browser. The referenced pivot table data is normally a SSAS tabular model. This has been working fine for over 12 months apart
    from one irritating feature.
    Sometimes a clicked slicer entry does not result in the correct slicer value being selected. This typically occurs after using the mouse scroll button to scroll down a list of entries in a slicer. When using the keyboard arrow keys to highlight a slicer
    value and pressing Return to select an entry, the correct value does always seem to be selected - so it appears to point to a mouse scrollwheel issue. Also, after scrolling through slicer entries using the mouse scroll wheel, there appears to be some sort
    of slicer refresh problem that results in a blank entry/entries being displayed either at the top or bottom of a slicer. However, sometimes the correct 'tooltip' is shown for this blank slicer entry. One other point - when using the slicer scrollbar the scroll
    down a list of slicer entries using Firefox, the problem does not seem to occur. IE does not seem to display the same type of slicer scrollbars (only active when the mouse hovers over the slicer) and so this is more difficult to replicate in Ie.
    The worrying factor is that the user is often unaware that the incorrect slicer value has been selected. The problem can be replicated in both IE11 and Firefox. Also our client systems accessed via Citrix display the same problems.
    Any help greatly appreciated. Thanks.
    Graham Goodwin Email: [email protected]

    Hi Graham,
    i built the same version, please correct me if should your environment, is sharepoint 2013 with march 2013 update and your office also the same update. in my labbox seems the issue is not re-producible.
    after some discussion with my colleague, seems there was issue similar like this back in 2010 Excel and the remedy is to update the excel services and to re-install the power pivot at SQL server. back then the issue is because when we scroll the selection,
    it should be locked, so then when we scroll it may have the position to update and refresh the data. one of the workaround is by clicking the item and press enter, by doing this it will refresh the page correctly. the link was:http://www.microsoft.com/en-us/download/details.aspx?id=29074
    i tried to look at our update for the excel services 2013, there are updates in every cumulative updates but there is no particlular update regarding this issue, perhaps you may try this to check in your development environment, if should it may fix the
    issue.
    to re-install the power pivot, you may need to do this on your sql side. 
    http://technet.microsoft.com/en-us/library/ee210708.aspx
    http://technet.microsoft.com/en-us/library/ee210671.aspxi may suggest you to check the ULS log, if should there are issues with powerpivot also, to make sure if should there are no issue
    regarding power pivot. if there is no issues on the powerpivot, then you may need to open a ticket to report this issue, so that we can have a detailed checking to your environment remotely.
    Regards,
    Aries
    Microsoft Online Community Support
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • Frame Duration not selectable when clicking on show info for jepgs & stills

    I have imported still images into imovie HD6 and cannot select the duration any clip. I have tried both, pressing apple+i and double-clicking the image.
    The only thing that works is the manual slider control in the timeline section. The problem is I'm importing several hundred still clips and don't want the standard (default) of 5 seconds, but rather, 0:00:8 of a second. I was hoping to be more exact than just dragging the slider down. Not to mention manually changing each clip is going to take quite a long time.
    Also, I was wondering if there was a way to "select all clips" and then change the duration of all clips at the same time? (so far I've been able to select all and that's about it)
    any help would be appreciated
    thanks,
    -TJ
    Intel 2Ghz Core Duo   Mac OS X (10.4.6)  
    Intel 2Ghz Core Duo   Mac OS X (10.4.6)  

    Thanks for the info. It has not completely solved my problem, but I have gotten farther. By importing the images from iphoto instead of a straight drag 'n drop from my desktop, I have now been able set the duration of my frames when importing. I am also able to change each clips duration individually once I double click on a frame in the timeline window.
    Here's my dilemma:
    I may be able to control the duration of each picture I import, however I can only choose the numbers I can set using the slider. Meaning, if I go in and punch in the numbers manually, even if its within the minimum 00:03, I still get an error that states "I have not set a time within the minimum parameters." You may wonder why I can't set the slider to what I want and that is because my slider control under "photo settings" skips from 0:03 to 0:18 or sometimes 0:15 or 1:10, 1:18, and so on....
    clarification:
    (i'm talking about as I slide the slider back and forth. It doesn't move up and down the numeric scale evenly. Once I set it on a number, it doesn't skip.
    I mean it skips between numbers with no means to refine the number you really want to try—I hope I didnt' confuse further.)
    A Little More Background:
    I am importing 176 pictures as still clips from iphoto into imovie HD6. I don't know if the number of slides have something to do with it or not, I cannot seem find a definte answer to that. do you know?
    Also, once imported from iphoto into imovie, it will not consistently behave the way I assume the program is made, when I try and set a new duration time. Meaning if I wanted to change all my photo stills from the chosen imported time of 00:03 to one of the next numbers on the slider (let's say it's 1:18), and I hit update, it sometimes changes it and sometimes doesn't. More times it does NOT. I have tried "select all" or "select similar" from the menu thinking that my selecting method may be the problem, but these actions don't seem to make a difference.
    any ideas on what is wrong? is it a bug or is it something I'm not doing correctly.
    btw: thanks for the note on the frame rates. I know I speak less intelligent in these areas. I appreciate the new knowledge.
    Intel 2Ghz Core Duo   Mac OS X (10.4.6)  
    Intel 2Ghz Core Duo   Mac OS X (10.4.6)  

  • MS Project Pro file on Project Server 2010 does not accept [No Group] selection when clicking on Group view

    MS Project Server 2010 gives me the following error when I try to click on the [No Group] group:
    Error message:
    The group "" cannot be found. You tried to display a view that references a group that is not available.
    Specify a different group for the view."
    Note: When I look at the drop downlist for the Group on the View Ribbon, [No Group] appears in the Built-in section of the list. It also appears on the Organizer.

    Michael W --
    I have seen this error message several times when the project got corrupted due to drops in my network connection while the enterprise project was open.  If memory serves me correctly, the method for resolving this problem is to use the Save For
    Sharing feature.  To do this, complete the following steps:
    Add the Save for Sharing button to your Quick Access Toolbar, if you have not already done so previously.  Use the Project Options dialog for this.
    Open the project in question and click the Save for Sharing button.
    In the Save for Sharing dialog, save the MPP file in a location where you can find it easily, such as your Desktop.
    Close the MPP file and then reopen it.
    Click File > Save As and then click the Save button.
    Using this process, Microsoft Project will resolve the corruption in your project.  Please let us know if this process works for you.
    Dale A. Howard [MVP]

  • Bridge auto Changes temperature to pictures when clicked

    Hi, I've been having this issue with both jpgs and DNGs so I think I have an issue with my Adobe Bridge. Having updated my CS5 with all the latest updates, camera raw, etc..., whenever my adobe bridge loads thumbnails for a picture (either jpg or dng), it adds a bit of this yellow hue/temp when i click on it. the change is permanent when i try to edit in camera raw and still there when i open the image to photoshop....
    i've been scouring the net trying to find out how to solve this but it seems like no one knows really how to do this. i'm REALLY REALLY frustrated with this,
    please help! I've cleared the cache, I only have 4 camera profiles under camera calibration in camera raw (Embedded, ACR 4.4, Adobe Standard, Camera Standard), I'm using a pentax k-5 but it doesn't sound like that should matter seeing how bridge DOES have the capability of showing what i want it to show but.... for some reason, that temp/tint keeps adding itself! akdfjalsdfjaldsf
    I've included a screenshot of what it should look like and what it looks like when i click on it.
    what it should look like
    what ends up happening.

    Within Bridge, go to Camera Raw Preferences, and make sure the "Apply Auto Adjustments" is NOT checked.

  • Creating a new profile works fine at first, but back to original problem when opened again

    Ok, so I've been reading about how people have had trouble with slowness using FF, and up until the past week, I've honestly never had a problem with FF. But recently, in the past week, every time I open up a couple of web pages, it slows right down and then into the 'spinning pizza wheel' so that I have to do a force quit. So after a lot of research on these help pages, I tried going into safe mode, as well as doing a full reset, but nothing helped. I then tried to create a new profile, and problem solved! Or so I thought. It turns out that I can open as many pages as I want when I first open this fresh new profile, but when I quit out of FF and then open this new profile again (using the profile manager), it goes right back into slowing down with the 'spinning pizza wheel' again, and so I then have to force quit. I can delete and recreate this new profile over and over, and I keep getting the same result - FF works fine on the first try, but close out and reopen the new profile, or my old one for that matter, and back to the original problem! Hopefully someone can help me out. Thanks in advance!
    BTW I'm using a 2010 Mac Pro running OSX 10.8.5 with the latest version (25) of FF

    the apple guys should do something...this is a bad feedback on their part. this will drive away their costumers knowing this....is there any solution to this?

  • How to maintain dynamic rows with data when click on Previous button?

    Hi,
    I have 1 aspx page and divided into 3 pages using panels.Each panel has "Next" and Previous buttons
    I have created and deleted dynamic table rows when click on Add button using javascript. whenever i click on Next button it will navigate to same page of next panel.
    when i click on previous button then it goes to previous panel but whatever i have added dynamic table rows in 1st panel that got removed.
    Can u please help me for how to maintain state of dynamic table rows with entered data when click on Previous button?
    How to get dynamic table rows with entered data in previous panel when click on Previous button?
    Please find the below javascript code:
    function insertRow() {
    if (index >= 2) {
    document.getElementById('deleteRow').style.display = "inline";
    else { document.getElementById('DeleteRow').style.display = "none"; }
    var table = document.getElementById("myTable");
    var row = table.insertRow(table.rows.length);
    cell1 = row.insertCell(0);
    t1 = document.createElement("select");
    t1.options[t1.options.length] = new Option('--Select--', '0');
    t1.id = "ddlYear" + index;
    cell1.appendChild(t1);
    for (var i = 1975; i <= 2015; i++) {
    opt = document.createElement("option");
    opt.value = i;
    opt.text = i;
    t1.add(opt);
    t1.style.width = "155px";
    var cell2 = row.insertCell(1);
    t2 = document.createElement("Select");
    t2.options[t2.options.length]=new Option('--Select--','0');
    t2.options[t2.options.length]=new Option('State Board','1');
    t2.options[t2.options.length]=new Option('CBSE','2');
    t2.options[t2.options.length]=new Option('ICSE','3');
    t2.options[t2.options.length] = new Option('Others', '4');
    t2.style.width = "155px";
    t2.id = "ddlCourse" + index;
    cell2.appendChild(t2);
    var cell3 = row.insertCell(2);
    t3 = document.createElement("input");
    t3.id = "txtCity" + index;
    cell3.appendChild(t3);
    var cell4 = row.insertCell(3);
    t4 = document.createElement("input");
    t4.id = "txtInstitute" + index;
    cell4.appendChild(t4);
    var cell5 = row.insertCell(4);
    t5 = document.createElement("Select");
    t5.options[t5.options.length] = new Option('--Select--', '0');
    t5.options[t5.options.length] = new Option('English', '1');
    t5.options[t5.options.length] = new Option('Hindi', '2');
    t5.options[t5.options.length] = new Option('Telugu', '3');
    t5.options[t5.options.length] = new Option('Others', '4');
    t5.style.width = "155px";
    t5.id = "ddlMedium" + index;
    cell5.appendChild(t5);
    var cell6 = row.insertCell(5);
    t6 = document.createElement("input");
    t6.id = "txtSpecialization" + index;
    cell6.appendChild(t6);
    var cell7 = row.insertCell(6);
    t7 = document.createElement("input");
    t7.id = "txtFnl" + index;
    cell7.appendChild(t7);
    index++;
    function DeleteRow(index) {
    var table = document.getElementById("myTable");
    table.deleteRow(index);
    // if (index = 2) { alert("There is no rows added.Please add the new row"); }
    Design:
    <tr style="font-size: 12pt" id="trSecond" runat="server">
    <td colspan="3">
    <table id="myTable" width="100%" border="0">
    </table>
    <tr>
    <td colspan="3" align="right">
    <input type="button" title="Add" value="Add" onclick="insertRow();" />
    <input type="button" id="deleteRow" title="Delete" value="Delete Row" onclick="DeleteRow(this);" style="display:none" />
    </td>
    </tr>
    Thank you.

    Put the button click into an action listener and build the new frame there. The code I have below isn't exactly what you're doing (it's amazingly oversimplified), but it's probably similar enough to get your wheels turning in the right direction.
    import java.awt.*;
    import javax.swing.*;
    import java.awt.event.*;
    public class sample
         public static void main(String[] args)
              JFrame frame = new JFrame("Sample");
              frame.setSize(400,400);
              Container content = frame.getContentPane();
              content.setLayout(new FlowLayout());
              frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              final JTextField text = new JTextField(10);
              content.add(text);
              JButton button = new JButton("Send");
              content.add(button);
              frame.setVisible(true);
              button.addActionListener(new ActionListener()
                   public void actionPerformed(ActionEvent ae)
                        JFrame myframe = new JFrame("Results");
                        myframe.setSize(200,200);
                        Container mycontent = myframe.getContentPane();
                        mycontent.setLayout(new FlowLayout());
                        String mytext = text.getText();
                        JLabel label = new JLabel();
                        label.setText(String.valueOf(mytext));
                        mycontent.add(label);
                        myframe.setVisible(true);
    }

  • Windows Phone 8.1 xaml, c# ComboBox does not display selection when first item is selected from full page list.

    I have 3 comboboxes on a xaml page and most of the time when I select the first item on the full page list displayed when the number of items are > 5, the screen returns to the combobox and the box is blank. The combobox.SelectedItem is valued but it
    does not display.  This does not happen every time and I have seen this using the emulator and my windows 8.1 phone.  If I select any other item in the list they always display but when I go back and select the first item the box is blank. 
    Does anyone know what I could be doing that is causing this?

    Thanks for your help.  When I run the code below and the page is displayed, I select an item from the page list and it displays fine and then I select the first item from the page list and I do not see that selected item in the box. 
    If I remove the SelectedIndex=0 it all works fine except I do not have an item selected for the initial display.  Below should show problem and should work copy/paste in universal blank app.
    ScrollViewer x:Name="scrollViewer1">
            <StackPanel x:Name="stackPanel1" Background="Transparent">
                <ComboBox x:Name="comboBoxTestTypes" Margin="20,117.75,0,465.25" SelectedValuePath="ItemDescription" Width="310" Height="Auto" FontSize="17"
           ItemsSource="{Binding}" HorizontalAlignment="Left" VerticalAlignment="Center">
                <ComboBox.ItemTemplate>
                    <DataTemplate>
                        <TextBlock Text="{Binding ItemDescription}" />
                    </DataTemplate>
                </ComboBox.ItemTemplate>
            </ComboBox>
     </StackPanel>
        </ScrollViewer>
    public sealed partial class MainPage : Page
            public ObservableCollection<ItemDetail> itemDetail;
            public MainPage()
                this.InitializeComponent();
                this.NavigationCacheMode = NavigationCacheMode.Required;
                this.itemDetail = new ObservableCollection<ItemDetail>();
            protected override void OnNavigatedTo(NavigationEventArgs e)
                PageLoad();
            public class ItemDetail
                public string ItemDescription { get; set; }
                public string ItemName { get; set; }
            private async void PageLoad()
                await initializeTypes();
                var comboBoxTestTypesItemsSource = await GetTestTypes();
                comboBoxTestTypes.ItemsSource = comboBoxTestTypesItemsSource;
                comboBoxTestTypes.SelectedIndex = 0;
            private async Task initializeTypes()
                await addTestType("Item1");
                await addTestType("Item2");
                await addTestType("Item3");
                await addTestType("Item4");
                await addTestType("Item5");
                await addTestType("Item6");
            private async Task<ObservableCollection<ItemDetail>> GetTestTypes()
                //ObservableCollection<ItemDetail> list = new ObservableCollection<ItemDetail>();
                //Random rnd = new Random();
                //for (int i = 0; i < 50; i++)
                //    list.Add(new ItemDetail() { ItemDescription = "hello" + rnd.Next(0, 1001), ItemName = rnd.Next(0, 101).ToString() });
                await getSaveDataFileDataAsync("get");
                return itemDetail;
            private async Task addTestType(string description)
                int newIdAdd = 0;
                if (itemDetail != null && itemDetail.Count > 0)
                    newIdAdd = itemDetail.Max(mT => Convert.ToInt32(mT.ItemName)) + 1;
                var addTestType = new ItemDetail();
                addTestType.ItemName = newIdAdd.ToString();
                addTestType.ItemDescription = description;
                itemDetail.Add(addTestType);
                await getSaveDataFileDataAsync("save");
            private async Task getSaveDataFileDataAsync(string getSave)
                try
                    DataContractJsonSerializer jsonSerializer1 = null;
                    string dataFileName1 = "testFileName";
                    jsonSerializer1 = new DataContractJsonSerializer(typeof(ObservableCollection<ItemDetail>));
                    if (jsonSerializer1 != null && getSave == "get")
                        using (var stream1 = await ApplicationData.Current.LocalFolder.OpenStreamForReadAsync(dataFileName1))
                            itemDetail = (ObservableCollection<ItemDetail>)jsonSerializer1.ReadObject(stream1);
                    if (jsonSerializer1 != null && getSave == "save")
                        using (var stream1 = await ApplicationData.Current.LocalFolder.OpenStreamForWriteAsync(dataFileName1, CreationCollisionOption.ReplaceExisting))
                                jsonSerializer1.WriteObject(stream1, itemDetail);
                catch

  • Windows Explorer - How to select the first item once we open the explorer?

    Hi,
    In Windows Explorer - How to select the first item once we open the explorer using keyboard shortcut. I typically use downward arrow, it goes to the 2nd item in the list, then I again have to use upward arrow to go up.
    Is there a shortcut to select the first item in the list using keyboard? This is not specific to Windows 7, it has been the behavior even in previous Windows OS versions.
    Thanks,
    Mallik

    Opening a Microsoft Ticket is probably your best option. Unfortunately the change will not happen immediately and it will require multiple users to send in a ticket. I hope this ends up being resolved though.
    Good luck Mallik
    Also, don't forget to mark the post as answered so that it does not show up as unanswered to help others who search the forums.
    Agreed, MS wont change it easily. :)
    Arnav Sharma | http://arnavsharma.net/ Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading
    the thread.

Maybe you are looking for

  • Delivery type unchanged in both Transaction & B2B Web shop

    Hi Gurus, My requirement is to change the Delivery type to 'expedited' in the b2b web shop if the gross weight is less than 4 kg. I wrote sample code, without condition, in BADI to see the delivery type change in both transaction and in webshop. It s

  • Cannot schedule SCJP 5.0

    Hi All, I really need some advice please help me. I try to book SCJP 5.0 exam on Prometric, but when I try to submit it the form it says �Invalid Email address� under the part, �Sun Microsystems need further information� And does not let me confirmed

  • Software protection required?

    I know that they are good but are they THAT good. What do people use to protect Macs. For PC I use Kaspersky and have no complaints but I don't use anything for my Mac. Now my email account has been hacked and so I am trying to find out what the worl

  • Read the page name

    Hi all, I am new 2 JSP I need to how to read the page name on the URL i.e http://localhost:8080/default.jsp and advice me on wich book to buy for writing JSP pages that access Microsift SQL Server Database. Regards

  • Maintaining proportions when scaling squares

    I am using Photoshop CS6 on Mac OS. At the moment I am working on creating a set of icons for web use that are supposed to be 20 x 20 pixels in size, and each contain a number of squares. My working document (link to PNG copy) is 1000 x 1000 pixels i