Search Result

Collapse
2 results in 0.0013 seconds.
Keywords
Members
Tags
datarow
  •  

  • How to loop through DataRow[] to get the column name and value

    Hi
    I have a DataTable and get selected values out of it in a DataRow collection. I have the code that I want to make it run. Not sure if this is the correct approach to store column names and value in memory for later use?
    Code:
    DataTable dt = ds.Tables["Employee"];
    DataRow[] foundEmpRows = dt.Select("Dept = 10");
    
    NameValueCollection nvEmp = new NameValueCollection();
    foreach (DataRow
    ...
    See more | Go to post

  • Infog
    started a topic DataRow.SetField usage?

    DataRow.SetField usage?

    What is the difference between these two? If I use one or the other when adding or updating a strongly typed DataTable's DataRow, will there be any difference in the result?

    I can't find an explanation in any MSDN page.

    Code:
     _row.SetField("FieldName", "A value")
     _row("FieldName") = "A value"
    See more | Go to post
Working...