Example #1
0
        /// <summary>
        /// Binds the line items grid.
        /// </summary>
        private void BindLineItemsGrid()
        {
            object dataSource = GetLineItemsDataSource();

            if (dataSource != null)
            {
                LineItemsGrid.DataSource = dataSource;
                LineItemsGrid.DataBind();
            }
        }
Example #2
0
 /// <summary>
 /// Handles the NeedRebind event of the LineItemsGrid control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
 void LineItemsGrid_NeedRebind(object sender, EventArgs e)
 {
     LineItemsGrid.DataBind();
 }