DataTable TableTransferNoteMain = new DataTable(); TableTransferNoteMain.Columns.Add("TrnNo",typeof(int)); for (int i = 0;i < 100; i++) { TableTransferNoteMain.Rows.Add(i) }//how to retrieve The Values of above table using column name like this for (int j = 0 ; j < TableTransferNoteMain.rows.count()) { int TrnNumber = TableTransferNoteMain.column["TrnNO"].value // this is what i am expecting how to do this requirement }
foreach(DataRow MainRow in TableTransferNoteMain.Rows) { int TrnNumber=int.Parse(MainRow["TrnNo"]); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)