Example #1
0
        /// <summary>
        /// Find events
        /// </summary>
        /// <param name="row"></param>
        /// <param name="userStates"></param>
        private void FireRowEvent(SaleGridRow row, object itemData)
        {
            if (RowDataBound != null)
            {
                var e = new RowDataBoundEventArgs()
                {
                    Row      = row,
                    ItemData = itemData
                };
                RowDataBound(e);
                if (!e.CancelSet)
                {
                    row.ItemData = itemData;
                }
            }

            if (row.HasCell)
            {
                if (CellDataBound != null)
                {
                    foreach (SaleGridCell cell in row.Cells)
                    {
                        var e = new CellDataBoundEventArgs()
                        {
                            Cell     = cell,
                            ItemData = itemData
                        };

                        CellDataBound(e);

                        if (!e.CancelSet)
                        {
                            row.ItemData = itemData;
                        }
                    }
                }
            }
        }
Example #2
0
 void gpPQ11_InitializeCell(WSWD.WmallPos.POS.FX.Win.UserControls.CellDataBoundEventArgs e)
 {
     PQ11Grid_BuildCells(e);
 }