Using RadGrid as Line Items in Invoice

2 posts, 0 answers
  1. King Wilder
    King Wilder avatar
    240 posts
    Member since:
    Oct 2007

    Posted 23 Jul 2008 Link to this post

    Does anyone have an example of how to build a RadGrid control to appear similar to the line items in an invoice?

    These are sample columns:

    1. Delete button
    2. ComboBox for store list items
    3. Description field
    4. Quantity field
    5. Unit Price field
    6. Total field
    7. Checkbox for Taxable
    I need the default grid to show a blank row with fields showing.

    I have built the basic structure of the table, but I have to click an Edit or Insert button to have the fields appear on a default table. 

    If anyone has an example of this I would be grateful.

  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 24 Jul 2008 Link to this post

    Hi King Wilder,

    Try the following code snippet to set the default Grid to show a blank row with fileds showing.

    protected void Page_Load(object sender, EventArgs e) 
            if (!IsPostBack) 
                RadGrid1.MasterTableView.IsItemInserted = true

Back to Top