devxlogo

Tip Bank

The Best Way to Hide a Column in a DataGrid

Typically, developers hide a DataGrid column by getting the index of the column to be hidden, and then hiding it in the ItemCreated event as follows: e.Item.Cells[myColumnIndex].Visible = false; That

Use Array Predicates to Simplify Searches

Array predicates are a not-so-well-known feature introduced with the .NET Framework 2.0 that let you retrieve specific items or perform operations on all items of an array. For example, a

Generate Metatags for ASP.NET Pages Dynamically

You’re probably already aware of the benefits of metatags, which provide metadata about an HTML document. Metatags aren’t rendered in the browser, but search engines use them to categorize web

Using Tree(Map,Set) in Collections

Here’s the problem: You can’t put objects that don’t implement the Comparable interface inside a Tree(Map/Set); if you do, your code won’t even compile. The underlying cause is simple; TreeMap