Datagrid without cahe?

Hello to all...
Short:
The datagrid (and advanced datagrid) are optimized for identical "widgets" in each column.  I would like to use a table layout without this feature.  Does something like that exist.
Long:
If you think of an excel spreadsheet you will recognize 2 usages of it.  Some sheets have long columns of identically formated numbers.  Some sheets have diferent types of content in each cell of the columns.  I realize that datagrid, (and the related advanced datagrid) are optimized for the first type of "sheet" in that they cache the drawing widgets and reuse them...  I was wondering if there was a "grid" that was not so optimized, so that I can use it for the second type of sheet?
Thanks for taking the time to read this....
Jerry Westrick

"myDG.showHeaders" property.
Tracy

Similar Messages

  • Update Datagrid without refreshing

    Hi everyone!
    Is there a way to refresh a datagrid without clicking a button or refreshing the page if a new entry was inserted into the database.
    Example:
    A new name is inserted in the database, my datagrid will automatically update, it's like real time in updating.
    thank you very much!

    re-Flexing wrote:
    Hi everyone!
    Is there a way to refresh a datagrid without clicking a button or refreshing the page if a new entry was inserted into the database.
    Example:
    A new name is inserted in the database, my datagrid will automatically update, it's like real time in updating.
    thank you very much!
    what kind of project are you going to be including it in?
    commerical? personal?
    or are you just messing around with code?
    messing around/personal usage, i'd suggest a script acting on a timer request to check the database for any new entries.
    with a fully commerical project, you'd have to go the route of developing your own system with the implementation of a send/listener procedure, or as already mentioned, buy a pre-built one.

  • How to scroll within a datagrid without the browser window scrolling as well

    Hi,
    I have a datagrid with a vertical scrollbar. When the mouse
    is over the datagrid i'd like to use the mouse wheel to scroll
    through its contents. However when i do this the main browser
    window (which also has a vertical scrollbar) scrolls as well. How
    can i prevent the main browser window from scrolling when the mouse
    is over the datagrid so that only the contents of the datagrid
    scroll?
    Thanks

    I found some javascript code that solves this problem. Credit
    for the code has to go to the person who wrote the excellent
    article at the following link:
    http://www.switchonthecode.com/tutorials/javascript-tutorial-the-scroll-wheel
    If you read this article the code below should make sense.
    From this article i used the hookEvent and cancelEvent
    functions. In my particular case I embed the SWF object inside a
    JSP page using some javascript code. After the SWF is loaded i
    added the following line of code:
    hookEvent('my_swf_id', 'mousewheel', handleMouseWheel);
    where handleMouseWheel is defined as follows:
    function handleMouseWheel(e)
    if (document.getElementById("my_swf_id"))
    document.getElementById("my_swf_id").focus();
    return cancelEvent(e); // This is the key to the solution...
    When the mouse is over the datagrid in the SWF i can use the
    mouse wheel to scroll its contents without the main browser window
    scrolling at the same time.
    Thanks to all who took time to post their ideas, it was
    appreciated.

  • UPDATE single ROW from DATAGRID without refreshing the entire ItemsSource

    Hello there,
       I have a simple datagrid that has an ItemsSource of ObjectQuery<DbDataRecord>.
       Let's say I want to refresh a single row from the datagrid, (Because a specific item i know has been changed) without refreshing the entire ItemsSource because the source query is quite big.
    Any ideas?
    Thanks.
    -- Jorge_M_P

    Whilst you could raise property changed on every field in an item, that would of course mean implementing inotifypropertychanged on a wrapper object, then iterating all of those properties.
    An observablecollection implements the INotifyCollectionChanged interface.
    Amongst the possibilities for changes which that notifies are this one:
    https://msdn.microsoft.com/en-us/library/ms653207(v=vs.110).aspx
    Which notifies of a single item change.
    I usually wrap my entity framework objects.
    Sometimes I wrap all the properties so I can do change tracking in the viewmodel.
    This is a technique similar to the one I use in this sample:
    https://gallery.technet.microsoft.com/WPF-Highlight-Changed-a77976d4
    Which wraps plain classes - but the principle is the same.
    And
    I wrap the object and expose that, as I do in this:
    http://social.technet.microsoft.com/wiki/contents/articles/28209.wpf-entity-framework-mvvm-walk-through-1.aspx
    Note that because I wrap the same objects returned from EF, there is very little overhead in using an observable collection there.
    Hope that helps.
    Recent Technet articles:
    Property List Editing ;  
    Dynamic XAML

  • Flex datagrid without webserver possible ?

    Is it possible to use flash/flex to pull data from a database
    without the use of a webserver ? I have a swf. embedded within a c#
    .net forms application using fscommand to pass events back to the
    application but now have to see if I can pull the data without the
    use of a webserer. I understand that no webserver is going to be
    installed on these local pc's. Any ideas would be great !
    Thank You,

    Mike Britton has a tutorial for querying a Microsoft Access
    database on your local computer and displaying the results in a
    DataGrid:
    Introduction
    to Basic ColdFusion / Flex 2 Remoting

  • Sorting a DataGrid without changing the content

    I have a datagrid which is shown in a chart. I'd like to have it sorted upside down the dataField "x" without changing the chart, which is bound to the same arrayCollection. How can I do this without changing the chart?
    <mx:DataGrid sortableColumns="false"  width="480" height="156" dataProvider="{myArrayCollection}" editable="false" y="581" enabled="true" x="10">
              <mx:columns>
                    <mx:DataGridColumn id="col1" dataField="x" headerText="Trade #" />
                    <mx:DataGridColumn id="col2" dataField="p" headerText="Price" />
                    <mx:DataGridColumn id="col3" dataField="n" headerText="Users" />
                </mx:columns>
    </mx:DataGrid>
    thanks
    nicolas

    ArrayCollection is a view of a source Array.  If you create a second view, it can have a different sort order because sort and filters are properties of a view.
    Just assigning AC2 = AC1 simply has AC2 referencing the same view so sorting will have an effect on all consumers of that view.  However, if you do:
    AC2 = new ArrayCollection();
    AC2.list = AC1.list
    then you can sort AC2 and AC1 will not reflect the sort and vice-versa.  But, if you add an item to AC2 or AC1 it will be reflected in the other AC.  If you modify a property of an item in one AC, the other AC will see it.
    If you do:
    AC2 = new ArrayCollection()
    AC2.source = AC1.source
    You can also sort AC2 and AC1 will not reflect the sort and vice-versa.  But, if you add an item to AC2 or AC1, the other will not reflect that change unless you force an update on the other.  Same is true if you modify a property on an item in the AC.  The other AC won't know about it until you force an update.
    If you want to modify properties of an item in one AC and not every have it reflected in the other AC, then you should do a copy as the previous responder suggested.  I believe you want to use the pattern that assings AC2.list = AC1.list.
    Alex Harui
    Flex SDK Developer
    Adobe Systems Inc.
    Blog: http://blogs.adobe.com/aharui

  • How can I control the display of rows in datagrid without changing the dataprovider?

    Hello,
    I'm using advancedatagrid to render my table but I'm facing a problem to skip few rows which are unwanted or to hide. I should retain my original dataprovider without any modifications to achive this behaviour as I'm using it at many places.
    Can you guys please send me a tip or the example code? I really appreciate for it.
    Thanks,
    Siva.

    Hello Gaurav,
    Thank You..!!! I tried appling filterFunction on the ADG and got whatever I expected but filter changes the original dataprovider behaviour. SO which I dont want to do it.
    I have created a local variable and binded whatever data wanted to display on that page. Infact it works as expexted and I still have original data provider as well.
    I have one more problem, I'm using creationComplete to initialize my local data provider value. It works only once while creation of state. If I navigate my screens fore and back and come back to this screen, it doesn't display the modified values as creationComplete loads only while state creation.
    Is there any mothid which does the samething while vising the page every time than creation?
    Thanks,
    Siva

  • Saving dynamic objects in a container to a dataGrid

    I have an app which contains a dataGrid and a VBox container.
    dataGrid columns = username | objects
    VBox = holds children, objects (SWFLoaders)
    How would I be able to get the children back out of the
    dataGrid / save them to the dataGrid? Right now I'm using a
    VBox.getChildren(); and a dataGrid.selectedItem.objects =
    VBox.getChildren(); to get the information in. Is there any way to
    render it back out to the VBox so each user could have a different
    set of objects?
    Editing to show what the getChildren is returning - >
    AppName1.VBox.childName1,AppName1.VBox.childName2,AppName1.VBox.childName3,
    (etc)
    Any help, much appreciated.

    peterent:
    Let me try to clarify.
    I'm using a VBox to visually display a series of graphics. I
    am getting those graphics into the VBox by adding them as children.
    I'm using a dataGrid to hold data about a user, and it is set
    up to hold multiple users. Each user has a series of data that is
    redisplayed when you select their index in the datagrid. This is
    all textual data, so I figured out how to get it to save into the
    datagrid without too much trouble. Also I figured out how to
    redisplay the selected data once it was out.
    (Every column in the datagrid is set to not be visible except
    for the name)
    The big problem I'm having is turning the children of the
    VBox into something that would a> save easily to the dataGrid
    and b> load easily back into the VBox. This way, in addition to
    the data that I already have for each user, I could also save a
    series of graphics, that I could load back in at a later time into
    the VBox.
    I kinda went down the roads of considering using states
    today. But I don't really know how to dynamically generate a state
    which would then save into a dataGrid, and then have that state
    work for many different end-users.
    So, I hope this cleared things up a little bit. If not, or if
    you think you might know what I'm sniffing at but aren't totally
    sure, I could show you my source / app.

  • Datagrid column header split

    Greetings,
    I am using flashbuilder 4.5 for php premium.    I have a datagrid and need
    to have multiple column headers some spanning others.  I found an
    example that has multiple header/iterm renderers, but it is for the mx:datagrid,
    not the spark.  The example calls it SplitDataGridHeader.   Is there a way to
    do this with a spark (s:datagrid) without all the extra?
    The following is an image of the mx version running:
    thanks.

    @Johnny,
    Try to make use of the headerRenderer property and use <mx:Text /> control as a renderer so that your headerText gets wrapped..
    Thanks,
    Bhasker
    Message was edited by: BhaskerChari

  • Print data in Datagrid with AS3

    Dear all,
    I would want to print out all the data inside my Datagrid which were populated in flash AS3. Taking into consideration that my datagrid has horizontalScrollPolicy and verticalScrollPolicy activated, how do I print the whole information?
    This is the closest code I'm looking for, but I had alot of errors when I tried to use it, maybe because it is in AS2 & i convented it wrongly...
    Link: http://www.knowledgesutra.com/forums/topic/29459-print-with-flash-and-datagrids-without-re sizing/
    Do take a look at the code please.
    My convented code from AS2 to AS3:
    import fl.data.DataProvider;
    import fl.controls.DataGrid;
    import fl.controls.ScrollPolicy;
    var dp:DataProvider = new DataProvider();
    var fitPage:Boolean = false;
    dp.addItem({no:"1", Winner_Name:"TestName1", Prize_Title:"TestPrizeTitleTestPrizeNameTestPrizeNameTestPrizeName", Prize_Name:"TestPrizeNameTestPrizeNameTestPrizeName"});
    dp.addItem({no:"1", Winner_Name:"TestName1", Prize_Title:"TestPrizeTitle", Prize_Name:"TestPrizeName"});
    dp.addItem({no:"1", Winner_Name:"TestName1", Prize_Title:"TestPrizeTitle", Prize_Name:"TestPrizeName"});
    dp.addItem({no:"1", Winner_Name:"TestName1", Prize_Title:"TestPrizeTitle", Prize_Name:"TestPrizeName"});
    dp.addItem({no:"1", Winner_Name:"TestName1", Prize_Title:"TestPrizeTitle", Prize_Name:"TestPrizeName"});
    dp.addItem({no:"1", Winner_Name:"TestName1", Prize_Title:"TestPrizeTitle", Prize_Name:"TestPrizeName"});
    dp.addItem({no:"1", Winner_Name:"TestName1", Prize_Title:"TestPrizeTitle", Prize_Name:"TestPrizeName"});
    dp.addItem({no:"1", Winner_Name:"TestName1", Prize_Title:"TestPrizeTitle", Prize_Name:"TestPrizeName"});
    dp.addItem({no:"1", Winner_Name:"TestName1", Prize_Title:"TestPrizeTitle", Prize_Name:"TestPrizeName"});
    dp.addItem({no:"1", Winner_Name:"TestName1", Prize_Title:"TestPrizeTitle", Prize_Name:"TestPrizeName"});
    dp.addItem({no:"1", Winner_Name:"TestName1", Prize_Title:"TestPrizeTitle", Prize_Name:"TestPrizeName"});
    dp.addItem({no:"1", Winner_Name:"TestName1", Prize_Title:"TestPrizeTitle", Prize_Name:"TestPrizeName"});
    dp.addItem({no:"1", Winner_Name:"TestName1TestName1TestName1", Prize_Title:"TestPrizeTitle", Prize_Name:"TestPrizeName"});
    dp.addItem({no:"1", Winner_Name:"TestName1", Prize_Title:"TestPrizeTitle", Prize_Name:"TestPrizeNameTestPrizeNameTestPrizeNameTestPrizeNameTestPrizeName"});
    datagrid.columns = ["no","Winner_Name","Prize_Title","Prize_Name"];
    datagrid.getColumnAt(0).width = 50;
    datagrid.getColumnAt(1).width = 150;
    datagrid.getColumnAt(2).width = 100;
    datagrid.getColumnAt(3).width = 350;
    datagrid.dataProvider = dp;
    datagrid.horizontalScrollPolicy = ScrollPolicy.ON;
    datagrid.setSize(600, 250);
    clickme.addEventListener(MouseEvent.CLICK, clickmeFn)
    function clickmeFn(e:MouseEvent){
         fitPage = true;
         doPrint()
    function doPrint(){
          if (fitPage == false) fitPage = true;
            var pj:PrintJob = new PrintJob();
            // position of currently visible rows stored
            var prev_vPosition:Number = datagrid.verticalScrollPosition;
            var prev_width:Number = datagrid.width;
            var prev_height:Number = datagrid.height;
            var prev_vScroll = datagrid.verticalScrollPolicy;
            var prev_selectedIndex = datagrid.selectedIndex;
            var dgPrintWidth:Number = 0;
            var dgPrintHeight:Number = 0;
            if (pj.start() != true) {
                   return;
            // hide scrollbar for print
            datagrid.verticalScrollPolicy = "off";
            // hide the selection
            datagrid.selectedIndex = undefined;
            // datagrid width for printing
            if (fitPage) {
                   dgPrintWidth = pj.pageWidth;
            } else {
                   if (prev_width < pj.pageWidth) {
                        dgPrintWidth = prev_width;
                   } else {
                        dgPrintWidth = pj.pageWidth;
            // number of rows per view, ignoring fractions (floor)
              var rowsPerPage:Number = Math.floor((pj.pageHeight-datagrid.headerHeight)/datagrid.rowHeight);
            // total number of pages to be printed, if there are any fractions, have one page for that (ceil)
            var total_pages:Number = Math.ceil(datagrid.dataProvider.length/rowsPerPage);
            // number of full pages to be printed, ignoring fractions (floor)
            var full_pages:Number = Math.floor(datagrid.dataProvider.length/rowsPerPage);
            // number of rows on last page if partial
            var last_page_rows:Number = 0;
            // height of last page if partial
            var last_page_height:Number = 0;
            // partial last page ?
            if (total_pages != full_pages) {
                   last_page_rows = datagrid.dataProvider.length - (full_pages*rowsPerPage);
                   last_page_height = datagrid.headerHeight + (datagrid.rowHeight * last_page_rows);
            // datagrid height for printing
            dgPrintHeight = datagrid.headerHeight + (datagrid.rowHeight * rowsPerPage);
            datagrid.setSize(dgPrintWidth, dgPrintHeight);
            for (var i = 0; i<total_pages; i++) {
                   // if last page and partial - resize grid
                   if ((i == total_pages - 1) && (last_page_rows > 0)) {
                        datagrid.setSize(dgPrintWidth, last_page_height);
                   // move the visible row position.
                   datagrid.verticalScrollPosition = i*rowsPerPage;
                   // size box relative to the grid
                   var b = {xMin:0, xMax:datagrid.width, yMin:0, yMax:datagrid.height};
                   if (!fitPage && prev_width < pj.pageWidth) {
                        var x0 = (pj.pageWidth - prev_width) / 2;
                        b = {xMin:(-x0), xMax:(datagrid.width+x0), yMin:0, yMax:datagrid.height};
                   pj.addPage(datagrid, b);
            pj.send();
              pj = null;
           // delete pj;
            // previous scrollPolicy
            datagrid.verticalScrollPolicy = prev_vScroll;
            // position of currently visible rows restored
            datagrid.setSize(prev_width, prev_height);
            datagrid.selectedIndex = prev_selectedIndex;
            datagrid.verticalScrollPosition = prev_vPosition;
    The error I get when I tried to print it:
    TypeError: Error #1034: Type Coercion failed: cannot convert Object@26ec1d31 to flash.geom.Rectangle.
         at _fla::MainTimeline/doPrint()
         at _fla::MainTimeline/clickmeFn()
    Advice needed
    -Zainuu

    var columns:Array = ["Flash", "ActionScript", "Republic of Code"];
         trace(columns);
         //Start printing headers 
         var xPos:Number = 0;
         var tbWidth:Number = 0;
         //leave 2 rows margin at top
         var rowY:Number = _rowHeight * 2;
         for (var i = 0; i < columns.length; i++)
              //define xPos by adding the tbWidth of the last loop
              xPos = xPos + tbWidth;
              var column:DataGridColumn = targetDG.getColumnAt(i);
    //get width of this column
              tbWidth = column.width;
              //add textField
              printClip.createTextField("header_" + i , printClip.getNextHighestDepth(), xPos, rowY,tbWidth, _rowHeight);
              var thisTb:TextField = printClip["header_" + i];
              //thisTb.setNewTextFormat(headerFormat);
              thisTb.defaultTextFormat = headerFormat;
              thisTb.border = true;
              thisTb.borderColor = 0xCCCCCC;
              thisTb.background = true;
              thisTb.backgroundColor = 0xD5EAFF;
              thisTb.text = column.headerText;
    I got this AS2 code and I tried to convent it into AS3 but I have this error..
    1046: Type was not found or was not a compile-time constant: DataGridColumn.
    I have bold the line that causes this error. Anyone knows the solution for this error?

  • Dynamic DataGrid + slow horizontal scrolling

    Can anyone explain why my datagrid horizontal scrolling is so
    slow:
    Demo
    www.smithkjaer.dk/flex/TestComp.htm
    Source
    www.smithkjaer.dk/flex/srcview/index.html
    Depending on your connection it can take a few seconds to
    start due to a large number of columns being generated dynamically
    out from the xml source.
    Note: If I disable the datagrids scrolling and scroll it in a
    canvas there is no performance problem when scrolling, except i
    miss my column header labels when vertical scrolling is used.
    If I disable my dataProvider and build the dataGrid without
    adding data it also scrolls fast

    I have now filed this as a bug which has been confirmed,
    which you can read about here :
    http://bugs.adobe.com/jira/browse/SDK-14361
    Please vote for this bug to be fixed

  • DataGrid, selecting, highlighting, navigating to a row

    In Flash MX 2004
    I would like to have a row selected after the DataGrid has
    been populated.
    Much like a list box <select> in html, I would like to
    make one row
    "selected". It must be navigated to and highlighted to
    visually indicate the
    selection.
    However, the focusedCell property does not work when
    dg.editable=false
    So, I set the dg.editable=true, set the focusedCell to the
    appropriate row
    and cell then set the dg.editable=false. But this left the
    chosen cell in an
    editable (textbox) state that you would have to click out of
    in order to see
    all the contents of that cell. Ugly.
    With the fine suggestion of DMennenoh, I used the
    .selectedIndex property to
    choose the selected row, but, although the item is in fact
    selected, the
    datagrid does not navigate to the selected field. It stays on
    the first row.
    You must scroll through the list to see the selected row.
    Is there a way to progarmmatically choose and navigate to a
    row in a
    DataGrid without this effect?
    Julian

    myDG.setSelected(0)
    "stjulian" <[email protected]> wrote
    in message
    news:e7pnao$ilo$[email protected]..
    > In Flash MX 2004
    >
    > I would like to have a row selected after the DataGrid
    has been populated.
    > Much like a list box <select> in html, I would
    like to make one row
    > "selected". It must be navigated to and highlighted to
    visually indicate
    > the
    > selection.
    >
    > However, the focusedCell property does not work when
    dg.editable=false
    >
    > So, I set the dg.editable=true, set the focusedCell to
    the appropriate row
    > and cell then set the dg.editable=false. But this left
    the chosen cell in
    > an
    > editable (textbox) state that you would have to click
    out of in order to
    > see
    > all the contents of that cell. Ugly.
    >
    > With the fine suggestion of DMennenoh, I used the
    .selectedIndex property
    > to
    > choose the selected row, but, although the item is in
    fact selected, the
    > datagrid does not navigate to the selected field. It
    stays on the first
    > row.
    > You must scroll through the list to see the selected
    row.
    >
    > Is there a way to progarmmatically choose and navigate
    to a row in a
    > DataGrid without this effect?
    >
    >
    > Julian
    >
    >

  • Datagrid disappering on clicking while using popup button

    Hi,
    I have a popup button, which on opening presents a datagrid
    control. i can scroll through the datagrid.
    Problem is that if i accidentally click on the datagrid, the
    datagrid disappears back under the pop up button. Is there a way i
    can have it stop doing this and allow me to click through items in
    the datagrid without closing.
    I wanted the datagrid to close when an item is double
    clicked, so i had the double click property of the datagrid enabled
    but the problem again was if i had a single click on the datagrid
    it would close :(
    any suggetions?
    many thanks,
    abhi

    Manoj,
    I have tried out a prototype for this one. It seems to work but involves an extra button that user has to click.
    When the user selects the value from the combo box,instead of pushing the value to its destination, collect it in a cell say B2.
    use a toggle button from the components. when u click on ON in toggle button it pushes a 1 to the destination specified say C1.
    The destination cell where the combo box is feeding the selection has a formula like this E1=IF(C1=1,B2,D1). Note that D1 is a cell which populates blank value to ur combo box destination. it has the formula =""
    with the above set up: the user selects the value in the combo box and then clicks on the toggle button only then the value from combo box is placed at the combo box destination(E1).
    But the problem with the above set up is that the toggle button remains in the ON status once selected, pushing further selection in the destination with out the involvement of the toggle button.
    To overcome this pull in a RESET button clicking which it resets the status of the toggle to OFF again. this is the extra button I was referring to.
    Hope it helps!
    Thanks,
    Karthik

  • Accordion inside flex datagrid

    Trying to put an accordion inside a datagrid where the header has typical datagrid functionality on each set of columns. Each accordion has a seperate dataset inside. Is thi possible using rendering or will I have to build  custom set of functions to have it behave like a datagrid with colun sorting, dragging, etc.

    Basically I am looking to have one main header that controls six accordions, each with data from the same souce but filtered dynamically. The main header should still be able to be sorted and arrangable like a typical datagrid based on what accordion panel is currently open. I can provide a mock-up of what i want it to look like if this still is not clear. Its basically one datagrid header that can control 6 seperate datagrids(without headers) while being inside of an open accordion.

  • How do I get itemDoubleClick event in spark DataGrid ???

    Hello Everyone,
    Recently I am working with Spark DataGrid.
    Before I was using AdvancedDataGrid. In that I was capturing itemDoubleClick event.
    But I am not able to find such a event in SparkdataGrid.
    So I want to capture double click event on single row of DataGrid.
    Some people told that, I have to use my custom ItemRenderer to do that.
    But is there any way to capture itemDoubleClick event in Spark DataGrid without creating custom ItemRenderer ???

    You are correct.  I looked a the code and the comment says it dispatches a double click if the 2nd click is within the  DOUBLE_CLICK_TIME even if the first click was on another cell.
    This code figures out if the double-click is a true double-click.
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application
        xmlns:fx="http://ns.adobe.com/mxml/2009"
        xmlns:s="library://ns.adobe.com/flex/spark">
        <fx:Script>
            <![CDATA[
                import spark.events.GridEvent;
                private var lastColumnIndex:int = -1;
                private var lastRowIndex:int = -1;
                // set this to change the double click time   
                //mx_internal::event.grid.DOUBLE_CLICK_TIME = 480;  // ms
                protected function dataGrid_gridClickHandler(event:GridEvent):void
                    trace("click on this cell", event.rowIndex, event.columnIndex);
                    lastRowIndex = event.rowIndex;
                    lastColumnIndex = event.columnIndex;
                protected function dataGrid_gridDoubleClickHandler(event:GridEvent):void
                   if (event.rowIndex == lastRowIndex && event.columnIndex == lastColumnIndex)
                       trace("a real double click on this cell", event.rowIndex, event.columnIndex);
                   else
                       trace("this is a gridClick on another cell", event.rowIndex, event.columnIndex);
                   lastRowIndex = event.rowIndex;
                   lastColumnIndex = event.columnIndex;
            ]]>
        </fx:Script>
            <s:DataGrid id="dataGrid" requestedRowCount="5" verticalCenter="0" horizontalCenter="0"
                         doubleClickEnabled="true"
                          gridClick="dataGrid_gridClickHandler(event)"
                          gridDoubleClick="dataGrid_gridDoubleClickHandler(event)">
                <s:ArrayCollection>
                    <s:DataItem key="1000" name="Abrasive" price="100.11" call="false"/>
                    <s:DataItem key="1001" name="Brush" price="110.01" call="true"/>
                    <s:DataItem key="1002" name="Clamp" price="120.02" call="false"/>
                    <s:DataItem key="1003" name="Drill" price="130.03" call="true"/>
                    <s:DataItem key="1004" name="Epoxy" price="140.04" call="false"/>
                    <s:DataItem key="1005" name="File" price="150.05" call="true"/>
                    <s:DataItem key="1006" name="Gouge" price="160.06" call="false"/>
                    <s:DataItem key="1007" name="Hook" price="170.07" call="true"/>
                    <s:DataItem key="1008" name="Ink" price="180.08" call="false"/>
                    <s:DataItem key="1009" name="Jack" price="190.09" call="true"/>            
                </s:ArrayCollection>
            </s:DataGrid>
    </s:Application>

Maybe you are looking for

  • Where is 'Photo Stream' in iPhoto 9.4 ?

    Where is 'Photo Stream' in iPhoto 9.4 ? No longer iCloud synchronisation with iPhoto 9.4 Any ideas. Greatings.

  • JVM Error 102

    My phone has got a white screen with JVM Error 102 showing.  I have tried rebooting, taking battery out and leaving etc but not worked.  Apparently I can link up my phone using usb to laptop and do a fix but I am unsure how to go about this.  Can any

  • Problem in Benefits: Please help

    Hi All,     How can you make sure that an employee only enrolls in one health plan and not more than one. In other words assume the employee qualifies for a benfits program which offers 3 plans (after the first,second grouping and eligibility variant

  • Personal domain settings

    I can't publish my webstite on the personal domain I bought - does someone knows where's the mistake? A. I used my .Mac membership and iWeb '08 (2.0.2) B. I bought my personal domain www.massimodifelice.com at http://we.register.it/ C. I went on my a

  • P67a-C45 powers on for a few seconds then turns off

    got a core i7 2600 with this board, my problem is when i power on, the 4 blue leds on the mobo turns on, cpu fan spins up and 5 seconds later it goes off again and then turns on again and keeps repeating - no beep codes - mounted the mobo on a board