Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

how to design a ListView control?

Answer Posted / kris

</tr> <asp:ListView ID="lstBank" runat="server"
OnItemCommand="lstBank_ItemCommand" >
<LayoutTemplate>
<table border="0"
cellpadding="4" class="tblGrid tblAccount">
<tr>
<th
style="text-align:center; width: 90px">

<asp:Label ID="lblVoucherNo" Text="Voucher No"
runat="server"></asp:Label>
</th>
<th
style="text-align:left; width: 90px">

<asp:Label ID="lblDate" Text="Date"
runat="server"></asp:Label>
</th>

<th
style="text-align:left; width: 90px">

<asp:Label ID="lblChequeNo" Text="Cheque No"
runat="server"></asp:Label>
</th>
<th
style="text-align:left; width: 90px">

<asp:Label ID="lblChequeDate" Text="Cheque Date"
runat="server"></asp:Label>
</th>

<th
style="text-align:left; width: 90px">

<asp:Label ID="lblAmount" Text="Amount"
runat="server"></asp:Label>
</th>
<th
style="text-align:left; width: 90px">

<asp:Label ID="lblPartyName" Text="Party Name"
runat="server"></asp:Label>
</th>

<th
style="text-align:left; width: 90px">

<asp:Label ID="lblDate" Text="Date"
runat="server"></asp:Label>

</th>
<th
style="text-align:center; width: 50px">

<asp:Label ID="lblCheck" Text="Check"
runat="server"></asp:Label>
</th>

</tr>

<asp:PlaceHolder runat="server"
ID="itemPlaceholder"></asp:PlaceHolder>
<tr
class="gridOddRow gridOddRowListUser">
<td
colspan="10" class="noBrdrBtm noBrdrRght">
<table
class="tblTotalRecords">
<tr
class="removeHoverColor">

<td valign="top" align="left">

<div style="text-align: left; padding-top: 4px;
vertical-align: text-bottom">

Total Records:

<asp:Label ID="lblTotalRecords" runat="server"
Text="1"></asp:Label>

</div>

</td>

<td valign="middle">

<div style="text-align: center;">

Page Size:

<asp:DropDownList AutoPostBack="true"
OnSelectedIndexChanged="ddlPagingSize_OnSelectedIndexChanged
"

CssClass="PagingDropDownStyle"
ID="ddlPagingSize" name="ddlPagingSize" runat="server">

</asp:DropDownList>

</div>

</td>

<td align="center" valign="middle" colspan="10">

<div style="text-align: center;">

<asp:LinkButton ID="lnkPrev" CommandName="Prev"
ToolTip="Previous" runat="server"> << </asp:LinkButton>

Page

<asp:TextBox OnKeyPress="return DoPagingOnEnter();"
runat="server" Width="18px" Height="12px"

Style="text-align: center; font-family: Arial;
font-size: 11px;" Text="1" ID="txtPage"></asp:TextBox>

of

<asp:Label ID="lblCount"
runat="server">1</asp:Label>

page(s)

<asp:LinkButton ID="lnkNext" CommandName="Next"
ToolTip="Next" runat="server"> >> </asp:LinkButton>

</div>

</td>

</table>
</td>
</tr>
</table>
</LayoutTemplate>
<ItemTemplate>
<tr id="idRows"
onclick="return ChangeRowColor(this);" class="<%#
Container.DisplayIndex % 2 ==
0 ? "gridOddRow" : "gridEvenRow" %>" >
<td
style="display:none" >
<asp:Label
runat="server" Text='<%# Eval("VoucherId")%>'
ID="lblVoucherId"></asp:Label>
</td>
<td>
<asp:Label
runat="server" Text='<%# Eval("VoucherNumber")%>'
ID="lblVoucherNo"></asp:Label>
</td>
<td>
<asp:Label
runat="server" Text='<%# Eval
("VoucherDate","{0:dd/MM/yyyy}")%>'

ID="lblDate"></asp:Label>
</td>
<td>
<asp:Label
runat="server" Text='<%# Eval("ChequeDDNo")%>' ToolTip='<%#
Eval("ChequeDDNo")%>'

ID="lblChequeNo"></asp:Label>
</td>
<td >
<asp:Label
runat="server" Text='<%# Eval
("ChequeDDDate","{0:dd/MM/yyyy}")%>'
ID="lblChequeDate"></asp:Label>
</td>
<td>
<asp:Label
runat="server" Text='<%# Eval("Amount")%>'
ID="lblAmount"></asp:Label>
</td>
<td >
<asp:Label
runat="server" Text='<%# Eval("PartyName")%>'
ID="lblPartyName"></asp:Label>
</td>

<td
>
<asp:TextBox
runat="server" ID="txtDate" Text='<%# Eval
("ReconciledDate","{0:dd/MM/yyyy}")%>' class="txtNormal
CustomWidth" onkeypress="Date_Only();" > </asp:TextBox>

<ajax:CalendarExtender ID="calDate"
PopupPosition="BottomRight" Format="dd/MM/yyyy"

TargetControlID="txtDate" runat="server">

</ajax:CalendarExtender>
</td>
<td >

<asp:CheckBox runat="server" ID="chkRec" value='< %# Eval
("VoucherNumber")%>' OnCheckedChanged="chkRec_checked"
AutoPostBack="true" /> <%--onMouseDown=<%#"return TestCheck
('"+ Eval("Amount") +"',this);"%>--%>
</td>

</tr>
</ItemTemplate>
<EmptyDataTemplate>
<table border="0"
cellpadding="4" class="tblGrid tblAccount">
<tr>
<th
style="display:
none">

<asp:Label ID="lblVoucherId" Text="Voucher Id"
runat="server"></asp:Label>


</th>
<th
style="padding-left: 4px; width:
100px">
Voucher
No

<th
style="padding-left: 4px; width:
150px">

<asp:Label ID="lblCurrency" Text="Voucher Date"
runat="server"></asp:Label>


</th>
<th
style="text-align:right; width: 100px">

<asp:Label ID="lblChequeNo" Text="Cheque No"
runat="server"></asp:Label>
</th>
<th
style="text-align:right; width: 110px">

<asp:Label ID="lblChequeDate" Text="Cheque Date"
runat="server"></asp:Label>
</th>
</th>
<th
style="padding-left: 4px; width:
180px">

<asp:Label ID="lblAmount" Text="Amount"
runat="server"></asp:Label>

</th>
<th
style="padding-left: 4px; width:
180px">

<asp:Label ID="lblPartyName" Text="Party"
runat="server"></asp:Label>

</th>

<th
style="padding-left: 4px; width:
180px">

<asp:Label ID="lblDate" Text="Reconcile Date"
runat="server"></asp:Label>

</th>
<th
style="padding-left: 4px; width:
180px">

<asp:Label ID="lblCheck" Text="Reconcile"
runat="server"></asp:Label>

</th>

</tr>
<tr>
<td
class="gridOddRow" colspan="10">
<center>

<b>No records found.</b>

</center>
</td>
</tr>
</table>
</EmptyDataTemplate>
</asp:ListView>

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Code for Document Validation in XML.NET?

2320


Coding for Synchronizing Cache Access in ASP.NET?

3578


Code for Communicating over Sockets?

2293


Code for Using Keyboard Events?

2533


How to get Dynamically Linked Comboboxes Set?

2400


How to Bind Nested XML to a Repeater Control with Container.DataItem?

3578


Code for Creating a Form Using PlaceHolder Controls?

2771


Common UI for Multiple web applications. Suppose there are 35 websites using same third party controls.These 3rd party controls are made together that all 35 websites can use these controls.If we put all 3rd party controls and use its dll in 35 websites,only class files will be accessable. But I want to use CSS,images also in all 35 websites. how I can design the N-tier solution for this project.

2644


i have a gird with columns all are coming from database,this will bind in item templete in gridview as textboxex.and i have button below named Update.i want to update all the records in the grid,but if user change the value of one textbox,what is the easy way 2 do this

2516


Code for Presenting Parent/Child Data in a Data Grid Row?

2489


How we use ajax in asp.net through javaScript. Please givee me an example.

2922


Coding for .NET Delegates?

2481


How to use Client-side Script to Focus Controls in ASP.NET?

2901


how to create a search bar which access data from various websites and retrieves the data

2926


how to track links visited in google using iframes

2671