This is a migrated thread and some comments may be shown as answers.

Using RadGrid as Line Items in Invoice

1 Answer 134 Views
Grid
This is a migrated thread and some comments may be shown as answers.
King Wilder
Top achievements
Rank 2
King Wilder asked on 23 Jul 2008, 07:50 PM
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:

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.

Thanks.

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 24 Jul 2008, 05:15 AM
Hi King Wilder,

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

CS:
protected void Page_Load(object sender, EventArgs e) 
    { 
        if (!IsPostBack) 
        { 
            RadGrid1.MasterTableView.IsItemInserted = true
            RadGrid1.Rebind(); 
        } 
    } 


Thanks
Shinu.
Tags
Grid
Asked by
King Wilder
Top achievements
Rank 2
Answers by
Shinu
Top achievements
Rank 2
Share this question
or