I have a column I am creating in a GridView. Now the values retrived from the database for this column are integers.(1,2,3,4) I am trying to run a test for the integer retrieved and then manipulate the DataFormat string of the column based on the test. So if the value retrieved is 1, then write "Customer Complaint".
However currently my tests (The switch case) do not seem to be running. Question becomes what column property do I actually need to test on as currently testing on the .DataField property does not seem to work. Running a test with a series of IF statements currently yields the same result. Any direction would be greatly appreciated.
BoundField correspondencetype_i = new BoundField();
correspondencetype_i.HeaderText = "Correspondence Type";
correspondencetype_i.DataField = "correspondencetype_i"
correspondencetype_i.DataFormatString = "Customer Complaint";
correspondencetype_i.DataFormatString = "Technical Support";
correspondencetype_i.DataFormatString = "Customer Suggestion";
correspondencetype_i.DataFormatString = "Repair(RMA)";