Irwsoft Web Control

TableView
Brief Information
DescriptionRead only control to display the a list of item in a table layout.
Featuressorting data only
TableView
TableView control is a very light control.


The TableView control is a control to display a list of items from data source in a table layout. The control is very light control with a single sort feature. Combine it with Pagination control for data paging.


Example : Display Person table with TableView


C# code for Person table

// 1) Sample code for Person table
public class Person
{
     // 2) The columns of Person table.
     public int ID { get; set;}
     public string FirstName { get; set;}
     public string LastName { get; set;}
     public GenderType Gender { get; set;}
     public DateTime DateOfBirth { get; set;}
     public int Age { get; set;}
     public string Address { get; set;}
     public string City { get; set;}
     public string Country { get; set;}
     public string IdentityCardNo { get; set;}
     public double Saving { get; set;}
     public float Interest { get; set;}
}

ASPX code for TableView

// 1) Defines the TableView control
<irw:TableView ID="DV1" runat="server" SkinStyle="Default" AllowSorting="true" Async="true" Width="1000" OnSorting="DV1_Sorting">
     <Header>  // 2) Defines the properties need to display inside Header tag
          <irw:TableViewColumn Name="Name" Width="300" />
          <irw:TableViewColumn Name="DOB" DataType="Date" GroupNames="Age Info, BioData" Width="300" />
          <irw:TableViewColumn Name="Age" DataType="Integer" GroupNames="Age Info, BioData" Width="100" />
          <irw:TableViewColumn Name="Saving" DataType="Float" GroupNames="Wealth, BioData" Width="130" />
          <irw:TableViewColumn Name="Interest" DataType="Float" GroupNames="Wealth, BioData" Width="120" />
     </Header>
</irw:TableView>


Related Topics :


Irwsoft Data Ultimate Edition 4.0 supports data-schema extension (entity framework, linq to sql, simple class, and etc).