Search results for query "Datagridview query" (18):
DataGridView Multi-column Sort
Out of the box, the
DataGridView only allows sorting by a single column. This article presents code that enables users to sort their data in a
DataGridView by multiple columns. The
DataGridView derived class may be used for any data types that support the IComparable interface (which includes all the basic .NET types).
A Filter Dialog for a DataGridView
This is a dialog window that allows filtering a
datagridview. It can build filters with any depth of parentheses.
Exploring Secrets of the .NET DataGridView and Dynamic Data Manipulation
Find out how to use a single
DataGridView to display dynamic queries, adjusting columns automatically, and how to format individual cells exactly the way you want users to see them.
101 Ways to Manipulate the DataGridView Control
The
DataGridView control, new in Windows Forms 2.0, is so versatile and powerful that beginners can easily be overwhelmed by the options. Here's an at-your-fingertips reference to some of the most common and useful things you can do with it. (OK there aren't really 101 ways but there are a lot!)
Validating ASP.NET Query Strings
Starting with version 1.1, ASP.NET preprocesses any posted data (forms and query string), looking for suspicious combinations of characters that may be exploited by XSS attackers. But this barrier is not a silver bullet and you have to take responsibility. If your pages use query string parameters, you need to ensure that they are properly validated before use. How do you do that?
In this column, I build an HTTP module that reads an XML file where you have hardcoded the expected structure of the query string. The module then validates the query string of any requested page against the given schema. And you don't need to touch the code of any page.
DataGridView vs. DataGrid
The DataGridView Windows Forms control is a new .NET control introduced in MS Visual Studio .NET 2005 that is a good alternative to the VS .NET 1.x DataGrid control.
Within the DataGridView .NET 2.x control the data table presentation features became much easier to implement in .NET Windows application. The most attractive features of the new control are:
- It allows for the mix both data bound and unbound, virtual columns in the GridView.
- It has a special virtual mode allowing for the display of more than 100.000 rows without a huge performance hit.
- Individual columns, rows, cells or an entire data source can easily be styled.
LINQ Into Microsoft's New Query Capabilities
Query features have long been a cornerstone of database applications, but with LINQ, Microsoft introduces
query language features right inside of C# and VB.NET.
Using SharePoint's SPView Class and CAML as a Query Language
Learn how to use Microsoft's XML-based Collaborative Application Markup Language (CAML) as a
query language, letting you find and display SharePoint items dynamically.
Using Query Notifications in .NET 2.0 to handle ad-hoc data refreshes
Query Notification in SQL Server 2005 solves the problem of having to maintain a polling database to get the updated data. The new notification service of SQL Server 2005 can perform this amazing task of notifying a .NET code when any DML operations are performed to a specified table.
Online Article: LINQ
At PDC 2005, Microsoft introduced brand new technology known as LINQ, which stands for "Language Integrated
Query."The feature-set hiding behind this acronym is truly mind-boggling and worthy of a lot of attention. In short, LINQ introduces a
query language similar to SQL Server's T-SQL, in C# and VB.NET. Imagine that you could issue something like a "select * from customers" statement within C# or VB.NET. This sounds somewhat intriguing, but it doesn't begin to communicate the power of LINQ.