how to fetch the binded data in coded step with C#

2 posts, 0 answers
  1. Shirley
    Shirley avatar
    4 posts
    Member since:
    Oct 2011

    Posted 27 Oct 2011 Link to this post

    I am creating a test with coded steps using C#. I created a coded step to verify whether the specific column of the binding Exel data sheet is NULL or not.  If it is null, do thing 1. If it is not, do thing 2.
    I wanna know that how to fetch the data, I mean , use which method or property.
    For example:
    string flag;
    flag = ?     // flag is the data (column name is "CustomerName") from Exel.  I want to know what i shoud code to replace the "?".
    if (flag==" " || flag == null)
             do thing 1;
            do thing 2;
     It is urgent. Thank you very much.
  2. Anthony
    Anthony avatar
    19 posts

    Posted 27 Oct 2011 Link to this post

    Hello Shirley,

    Here's how to reference a data column in code:

    object myData = Data["Col1"];

    See here for more information.

    Kind regards,
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top