I have created a data table. It has 3 column Product_id, Product_name and Product_price
Datatable tabl
Try this I am also not 100 % sure
for( int i = 0 ;i< dt.Rows.Count; i++) { If(dt.Rows[i].Product_id == 2) { dt.Rows[i].Columns["Product_name"].ColumnName = "cde"; } }