C# - Change value of all rows of a specific colum of a DataTable [closed]
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I have a DataTable. What I want to do is change the value of all rows of the Colum "X" of the DataTable. For example: if row value is "TRUE" then change it into "Yes" else change it into "No" 回答1: maybe you could try this int columnNumber = 5; //Put your column X number here for(int i = 0; i < yourDataTable.Rows