Monday, September 19, 2011

my hack make a DataTable column full of anchor tags have the capacity for alphabetical sorting

I am replacing this:

row["Name"] = string.Format("<a href='/Program/Details?id={0}'>{1}</a>", row["Id"], row["Name"]);

 
 

...with this:

row["Name"] = string.Format("<!--{1}--><a href='/Program/Details?id={0}'>{1}</a>", row["Id"], row["Name"]);

No comments:

Post a Comment