Posted By

krisdb on 04/17/08


Tagged

c-sharp


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

umang_nine


DataView/DataTab;e loop through


 / Published in: C#
 

  1. DataView dvName = dtName.DefaultView;
  2. dvName.Sort = "Column ASC";
  3.  
  4. foreach (DataRowView drv in dvName)
  5. {
  6. drv["Column"]
  7. }
  8.  
  9. DataTable dtTable = new DataTable();
  10. foreach (DataRow dr in dtTable)
  11. {
  12. dr["Column"]
  13. }

Report this snippet  

You need to login to post a comment.