Need GridBoundColumn values in New Record Row

2 posts, 0 answers
  1. Sukhbinder
    Sukhbinder avatar
    7 posts
    Member since:
    May 2012

    Posted 23 Jun 2012 Link to this post

    Hi Team,

    I need to get the GridBoundColumn values into the new record row when we click the Add Record button.

    I am able to find the previous values of lables under GridTemplateColumn but above mention is not clear.

    Please let me know how it could be handled.


    SS Bhogal

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

    Posted 24 Jun 2012 Link to this post

    Hello Sukhbinder,

    Try the following code to access the newly inserted values.
    protected void RadGrid1_InsertCommand(object sender, GridCommandEventArgs e)
        GridEditFormInsertItem item = (GridEditFormInsertItem)e.Item;
        TextBox txt = (TextBox)item["UniqueName"].Controls[0];
        string value = txt.Text;

Back to Top