Esempio n. 1
0
 private void FgCliente_KeyUp(object sender, KeyEventArgs e)
 {
     if (e.KeyCode.ToString() == "Delete")
     {
         if (funFunciones.NulosC(FgCliente.GetData(FgCliente.Row, 2)) != "")
         {
             FgCliente.RemoveItem(FgCliente.Row);
         }
     }
 }
Esempio n. 2
0
        private void FgCliente_CellButtonClick(object sender, C1.Win.C1FlexGrid.RowColEventArgs e)
        {
            if (FgItems.Col == 1)
            {
                DataTable dtResul = new DataTable();
                string    c_dato  = "";

                dtResul = objCli.BuscarCliPro(dtCli, 1, "n_id", "");
                if (dtResul != null)
                {
                    if (dtResul.Rows.Count != 0)
                    {
                        c_dato = dtResul.Rows[0]["c_nombre"].ToString();        // MOSTRAMOS LA DESCRIPCION DEL ITEM
                        FgCliente.SetData(FgCliente.Row, 1, c_dato);

                        c_dato = dtResul.Rows[0]["n_id"].ToString();            // MOSTRAMOS EL ID DEL ITEM
                        FgCliente.SetData(FgCliente.Row, 2, c_dato);

                        FgCliente.Rows.Count = FgCliente.Rows.Count + 1;
                    }
                }
            }
        }