2 Replies Latest reply on Jan 12, 2007 5:12 AM by Hugo_Core

    Remove Selected on Datagrid

    Hugo_Core Level 1
      Hi everyone,

      This one is simple, i have a dataGrid, i can´t figured out how to:

      After visitor finished select all the items on the dataGrid, we want to remove from data base (mySql).

      Not important but , I just have to find a way to give me same data so that i can make a POST on php and a sql Query do delete from DB.

      Thanks for the Help in Advance,
      Core regards
        • 1. Re: Remove Selected on Datagrid
          ntsiii Level 3
          I'm not following you. Can you rephrase?
          • 2. Remove Selected on Datagrid
            Hugo_Core Level 1
            Hi Tracy,

            Look i have a checkBox itemRenderer on a DataGrid, now after the user select the checkBoxes i want to delelete that rows..

            witch checBox correspond to the row is in it..

            Sample Code

            <mx:DataGrid id="hList" dragEnabled="true" draggableColumns="true" editable="true" doubleClick="hList.editable=true" horizontalScrollPolicy="on" x="0" y="0" width="100%" height="100%" dataProvider="{myData}" borderStyle="solid" borderColor="#ffffff" borderThickness="0" selectedIndex="0">
            <mx:DataGridColumn width="25" textAlign="left" headerText="" itemRenderer="render.checkBox" editable="false"/>
            <mx:DataGridColumn dataField="id" headerText="Nº" width="35" wordWrap="false"/>
            <mx:DataGridColumn dataField="titulo" headerText="Título/Abreviação" minWidth="160"/>
            <mx:DataGridColumn id="nomeGrid" dataField="nome" headerText="Nome" minWidth="200" />
            <mx:DataGridColumn dataField="categoria" headerText="Categoria" minWidth="100" />
            <mx:DataGridColumn dataField="descricao" headerText="Descrição" minWidth="200">
            <mx:TextArea maxHeight="50" />
            <mx:DataGridColumn dataField="url" headerText="Imagem" itemRenderer="render.thumbGrid" editable="false" />


            <mx:CheckBox xmlns:mx=" http://www.adobe.com/2006/mxml"
            click="onClick();" useHandCursor="true" buttonMode="true">