|
|
Mouseover Highlighting and the Repeater Control
|
Total Hit (914) |
The Repeater Control is a lightweight control that really comes in handy. In this article we examine one use of the Repeater and show how to implement row highlighting and selection.
|
Rating
|
|
|
Using the ASP.NET Panel Control
|
Total Hit (1007) |
The Panel Control is so easy to use that I hesitated to even write an article about it. But I have received several questions about it so decided to write the article anyway. The Panel Control is a container that allows you to include other server controls on it. It is primarily used for containing
....Read More |
Rating
|
|
|
Filter and Sort the DataGrid Using a DataView
|
Total Hit (574) |
The DataView class is a filtering and sorting mechanism. To work, a DataView requires a DataTable. The DataView becomes a specific view of the DataTable and, among other things, can be used to filter and sort the DataTable. The best way to explain a DataView is to see it in action, so we will get ri
....Read More |
Rating
|
|
|
Conditionally Change a DataGrid Column Value
|
Total Hit (627) |
There are times when you will need to highlight or otherwise modify the contents of a particular DataGrid row-column value based upon the value in the column. In this example we will select the CompanyName, ContactName, and ContactTitle columns from the Customers table in the Northwind database. Whe
....Read More |
Rating
|
|
|
Exploring the Internet Explorer WebControls
|
Total Hit (882) |
Treeview, Toolbar, and TabStrip controls have been a part of client-server applications for years. They are not as common on the web due to the dhtml involved. Actually, for the most part, Microsoft has implemented dhtml for these controls only if you are running IE 5.5 and above. Downlevel browsers
....Read More |
Rating
|
|
|
Implement Custom Paging in the ASP.Net Datagrid Control
|
Total Hit (575) |
The inbuilt paging mechanism of the ASP.Net datagrid control is convenient, but can be very inefficient. The problem with the inbuilt system is that the entire resultset is gathered again and again with each page change. Assume you have a table with 200 rows in it and that you are displaying 10 rows
....Read More |
Rating
|
|
|
Add (INSERT) a New Row Using the ASP.Net Datagrid Control
|
Total Hit (845) |
In this article we will display both the grid and INSERT facility inside an html table. This will tie the datagrid and the INSERT facility together to make a fairly pleasing presentation. The best way to see how this works is to get right to the code. As with most dotnetjohn articles we will use a .
....Read More |
Rating
|
|
|
Including a Column Total Line in a DataGrid Control
|
Total Hit (554) |
The question is how to display a total line in a DataGrid control. It is quite easy to do by making use of the ItemDataBound event. As usual we will use an aspx page to define our grid.
|
Rating
|
|
|
Including a DropDownListBox in an Editable DataGrid
|
Total Hit (600) |
The data choices for some database table columns are relatively fixed. Examples would be countries, states, and counties for instance. In these cases a dropdown list of fixed choices makes more sense than keyboard input where mistakes can be made easily. In an editable datagrid you can include dropd
....Read More |
Rating
|
|
|
|
Include a Calculated Column in a DataGrid
|
Total Hit (549) |
In this article you will learn how to include a calculated column in a DataGrid. A calculated column generally contains some value calculated from one or more columns of data that are included in the data store. It could be based on multiplying or dividing a column value by some other value, or it c
....Read More |
Rating
|
|
|
Use the DataList Control to Present and Edit Data
|
Total Hit (913) |
The DataList is not as powerful as the DataGrid. It requires more work from you since it has no default data presentation format. However, the DataGrid begins to get very cumbersome as the number of columns of data you present increases. Anything more than half a dozen columns or so and you probably
....Read More |
Rating
|
|
|
Master-Detail DataGrids in ASP.Net
|
Total Hit (543) |
In this article you will learn how to link two datagrids in a master-detail relationship. There is more than one way to accomplish this task. In this article we will implement row filtering to find the detail records corresponding to a master record selected in the master grid. The tables we will us
....Read More |
Rating
|
|
|
Highlighting Rows in an ASP.Net DataGrid
|
Total Hit (622) |
I like the idea of highlighting rows in a DataGrid as the user scrolls the mouse up and down over the grid. The effect can be achieved using several lines of client-side JavaScript, but why do that when two lines of .Net code will accomplish the same thing? The trick is to implement an ItemDataBound
....Read More |
Rating
|
|
|
Exploring the Calendar Control
|
Total Hit (947) |
In this article we will utilize a number of the properties of the Calendar Control to change the calendar's appearance. The default values produce a usable, but not very attractive control. Much can be done to improve its appearance. We will also make use of two of the control's events to determine
....Read More |
Rating
|
|
|
Control Which Columns are Displayed in a DataGrid
|
Total Hit (614) |
This ASP.Net (VB) program allows you to select many, or all of the columns from a database table, but display only certain, specified columns in a DataGrid. It does this by setting the DataGrid AutoGenerateColumns property to false and then using the Columns Collection to specify the columns to be d
....Read More |
Rating
|
|
|
Build a Web Service and Create a Consumer
|
Total Hit (940) |
In this article we will create a guest book web service that will control additions to, and displays from a database table. We will also create a consumer (a regular Web Form) of the web service. The consumer is discussed at the end of the article. Web services look a little strange at first glance
....Read More |
Rating
|
|
|
.NET Web Services I
|
Total Hit (992) |
Microsoft promoted Web Services a great deal with the launch of .NET. This seems to have faded a little with Web Services perhaps not having taken off as much as was thought. The concept of interoperability over the Internet is still a great one however. In this article we'll quickly review the basi
....Read More |
Rating
|
|
|
|
Including a Data Bound CheckBox in an Editable DataGrid
|
Total Hit (637) |
I've had several requests to show how a data bound checkbox could be included in an editable datagrid. This article shows how to bind a bit field from a table to a checkbox in a datagrid as well as how to update the table with changes in the checked state of the checkbox.
....Read More |
Rating
|
|
|
|
Using Templates With the ASP.NET Repeater Control
|
Total Hit (996) |
The Repeater control is a lightweight control but has many uses and has become a favorite of mine. Many developers do not realize that you can use templates with the Repeater. It has a limited set of templates, with few properties, but you can make use of them as this article demonstrates.
....Read More |
Rating
|
|
|
Filtering the DataGrid
|
Total Hit (585) |
In this article we will filter the DataGrid on two columns. This adds a little code complexity but is not really very hard to do.
|
Rating
|
|
|
Paging and Sorting in an ASP.NET DataGrid
|
Total Hit (679) |
Allowing paging or sorting in a DataGrid is a very simple process. Allowing for both is only slightly more complicated. This article shows you how to do it.
|
Rating
|
|
|
|
|
|
Implementing Paging in a DataList Control
|
Total Hit (898) |
The DataList does not include inbuilt support for paging. By overloading the Fill method of the DataAdapter, however, you can create a paging mechanism for the DataList
|
Rating
|
|
|
Using a ButtonColumn Control in a DataGrid
|
Total Hit (597) |
The ButtonColumn Control is one of several controls that can be used within a DataGrid control in ASP.Net. This article demonstates one way to use this control.
|
Rating
|
|