Click here to Skip to main content
15,881,204 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
sqlCmd.Parameters.AddWithValue("@Amount", Convert.ToDouble(dtItems1.Rows[row["Amount"]))
Posted
Comments
Naveen Kumar Tiwari 3-Jun-15 8:49am    
Not Clear More Explanation requires

1 solution

When you need datatable cell value, you can use row index and column index like below dt.Rows[i][j] or you can use Field extension method to get column value of data table row. Refer below answer:
http://stackoverflow.com/a/13816531/2558060[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900