Browse by Tags

All Tags » Code Samples (RSS)
Sorry, but there are no more tags available to filter with.

How To: Group Data in the GridView Control

Grouping the data based on the column data is one of the common requirement. In ASP.NET 2.0 the Gridview control proves to be an efficient data control. The code snip shows how to group data using the GridView control .
Posted by SushilaSB | 10 comment(s)
Filed under:

How To: Change the row Background color based on the database value using GridView Control

We have seen many examples on how to change the background color of row based on the data using DataGrid Control. This can be done using a helper function or using the appropriate event of the datagrid We will use the similar scenerio to find out how...
Posted by SushilaSB | 35 comment(s)
Filed under:

Sample Code: Bidirectional Sorting in ASP.NET Repeater control

.aspx <asp:Repeater ID="Repeater1" Runat="server" EnableViewState="False"> <ItemTemplate> <table width="100%" cellspacing="0" cellpadding="0"> <tr> <td width=25%><%# DataBinder.Eval(Container.DataItem, "Employeeid") %><...
Posted by SushilaSB | 38 comment(s)
Filed under:

Sample Code: How to display multiple spaces in a dropdownlist

webform1.aspx <asp:DropDownList id="DropDownList1" runat="server"></asp:DropDownList> VB.NET Code Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load ’Put user code to initialize the page here...
Posted by SushilaSB | with no comments
Filed under:

Sample Code: Grouping Data in the DataList

One of the most common question is that if a Datalist displays the data as Inside Sales Coordinator Callahan Sales Manager Buchanan Sales Representative Suyama Sales Representative King Sales Representative Davolio Sales Representative Leverling Sales...
Posted by SushilaSB | 8 comment(s)
Filed under:

Sample Code: Using Dropdownlist in Editable DataGrid

This article demonstrates how to use Dropdownlist in Editable DataGrid Html Source <asp:DataGrid id="DataGrid1" AutoGenerateColumns="False" ItemStyle-CssClass="cdb-AltRow" AlternatingItemStyle-CssClass="cdb-AltRow2" DataKeyField="ProductID" OnUpdateCommand...
Posted by SushilaSB | 24 comment(s)
Filed under:
More Posts