Friday, February 18, 2011

Show Context Menu in the Grid Control

private void gridViewPendientes_ShowGridMenu(object sender, GridMenuEventArgs e)
{
         // Check whether a row is right-clicked.
         if (e.MenuType == GridMenuType.Row)
          {
                //Clear Items from a Menu
                e.Menu.Items.Clear();

               //Create a new MenuItem
               DXMenuItem Nuevo = new DXMenuItem();
               Nuevo.Caption = "Nuevo Proyecto";

               //Activa the EventHandler
               Nuevo.Click += new EventHandler(Nuevo_Click);

               //Add to the menu
               e.Menu.Items.Add(Nuevo);

               DXMenuItem Agregar = new DXMenuItem();
               Agregar.Caption = "Agregar a Proyecto";
               Agregar.Click += new EventHandler(Agregar_Click);
               e.Menu.Items.Add(Agregar);
       }
}

Sunday, February 13, 2011

 
 
 
 
 
 
AliasCLR type
stringSystem.String
sbyteSystem.SByte
byteSystem.Byte
shortSystem.Int16
ushortSystem.UInt16
intSystem.Int32
uintSystem.UInt32
longSystem.Int64
ulongSystem.UInt64
charSystem.Char
floatSystem.Single
doubleSystem.Double
boolSystem.Boolean
decimalSystem.Decimal