Gridview with highlighted search results

Continuing on my Gridview series, the next project which had me reaching for Google was a requirement to highlight the returned search results in a Gridview. Digging around, I found an article on 4guysfromRolla titled Highlighting Search Keywords in a DataGrid Web Control which formed the basis of my work.  I ended up updating, simplying and modifing [...]

ASP.NET Read more

Error when exporting a Gridview to Excel when using Master Pages

If you have a Gridview that exports rows to Excel (see my article Gridview that exports selected rows to Excel for an example) and you are using Master Pages, you are likely to run into the following error: “Control ‘ctl00_MainContent_Gridview1′ of type ‘GridView’ must be placed inside a form tag with runat=server”, even though you have the supposedly [...]

ASP.NET Read more

Gridview that exports selected rows to Excel

I recently had a project where I needed to provide a Gridview of items that the customer could individually select and export to Excel.  The solution worked really well, so here it is for all to enjoy… This seems like a messy workaround, but I ended up using two Gridviews – one to display my [...]

ASP.NET Read more

Creating a great looking Gridview with filtering

This simple tutorial shows you how to create a great looking Gridview that allows users to filter content. This design uses individual drop down boxes and data sources for each column that you want to allow your users to filter data on, and presents them in a stylish, professional looking table.

ASP.NET, Popular Read more