adding pygmy buttress strongly typed dataset
i am minute site uses strongly typed datasets.
the dba combined list finished gave buttress value represents negative. buttress 'do_not_estimate_flag' where buttress enclose 't' 'f'. i can't change underlying list explanation fills it. i wish supplement 'estimation_allowed' buttress datarow strongly typed dataset. i have finished controlling biased category i modify. (there autogenerated biased category non autogenerated biased category i safely modify.) explanation ability biased class. problem value hallowed ala
<%#databinder.eval(container.dataitem, "estimation_allowed")%>
it goes loyal underlying datarow ignoring property. i best grasp preferred result?
here code:
partial category myfunkydatatable
{
private system.data.datacolumn columnestimation_allowed;
[system.diagnostics.debuggernonusercodeattribute()]
open system.data.datacolumn estimation_allowedcolumn
{
get
{
relapse columnestimation_allowed;
}
}
open overrule vacant endinit()
{
//init class
columnestimation_allowed = new system.data.datacolumn("estimation_allowed", typeof(string), null, global::system.data.mappingtype.element);
columns.add(columnestimation_allowed);
columnestimation_allowed.readonly = true;
//init vars
columnestimation_allowed = columns["estimation_allowed"];
base.endinit();
}
}
biased category myfunkyrow
{
open twine estimation_allowed
{
get
{
if(do_not_est_flag == "n")
{
relapse "yes";
}
relapse "no";
}
}
}
Comments
Post a Comment