Gridview Blank cell.Text with DataBinder

posted in: Uncategorized | 1

So, you have something like this in a gridview: <asp:TemplateField HeaderText="Date From"> <ItemTemplate> <%# DataBinder.Eval(Container, "DataItem.DateFrom", "{0:M/d/yyyy}") %> </ItemTemplate> </asp:TemplateField> And you go to grab the text of that cell (say, you are looping through each row)… foreach (GridViewRow row … Continued

c# ?? Operator

posted in: Uncategorized | 0

Every once in a while, you run into something that makes you go “damn, I wish I knew that before.” In this case, I was given a lesson by the wonderful Resharper. I had a variable that I wanted to … Continued