How to bind particular columns of dataset to a dataGridView with condition

Viewed 30

enter image description here

I need to show 0 = "No" and 1 = 'Yes' inside IS_RECTIFIED Column. Is it correct using condition with DataTable? Currently i am not using the condition.

 DataSet ds = new DataSet();
 ds.Merge(obj.getAllData());
 DataTable dt = ds.Tables[0];
 DataView view = new DataView(dt);
 DataTable resultTable = view.ToTable(false,"IS_RECTIFIED" );
 dataGridView.DataSource = resultTable;
0 Answers
Related