so I am doing the datasource export to excel, but i open the file i saw the column has checkbox instead of value true or false. how do i fixed this, indeed, i want to put a sting “active” or “inactive” depends on the value. how can i do that?
also i want to have string format for the phone number as well
and the code i have for model
public string MobileNumber { get; set; }
public bool? IsActive { get; set; }
how do i change in order for me to have the way that i want it ?
Modify your model to return string for the IsActive property (or alternatively have two, one with bool and another with string). Then return the string value in the Linq query. Something like this: