I need to get the value of DataTable

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • macupryk
    New Member
    • Sep 2006
    • 24

    I need to get the value of DataTable

    string val = TEXTDT[var.name]; // The answer from text file of

    Where TEXTDT is a datatable, with column names var.name

    I need to get the value somehow.

    TEXTDT[var.name].var.no; I am not sure how to do this/

    var.name is the row name

    index the row using var.no


    Here is the Table called targetTable


    QUEST S_DAT NAME INTRO PART => These are the col using var.name
    000001 20060101 MATT 01 1 => These are the rows using var.no
    000002 20060101 SHELL 01 2
  • GanesanRamasamy
    New Member
    • Sep 2006
    • 5

    #2
    Originally posted by macupryk
    string val = TEXTDT[var.name]; // The answer from text file of

    Where TEXTDT is a datatable, with column names var.name

    I need to get the value somehow.

    TEXTDT[var.name].var.no; I am not sure how to do this/

    var.name is the row name

    index the row using var.no


    Here is the Table called targetTable


    QUEST S_DAT NAME INTRO PART => These are the col using var.name
    000001 20060101 MATT 01 1 => These are the rows using var.no
    000002 20060101 SHELL 01 2



    txtPassword.Tex t = objDtsetPersona l.Tables[0].Rows[0][1].ToString();
    strTempPwd = objDtsetPersona l.Tables[0].Rows[0][1].ToString();
    txtFName.Text = objDtsetPersona l.Tables[0].Rows[0][2].ToString();
    txtLName.Text = objDtsetPersona l.Tables[0].Rows[0][3].ToString();




    Regards,

    R.Ganesan

    Comment

    Working...