What are different templates available in Repeater,DataList and Datagrid ?

Answer Posted / sushil kumar

Templates enable one to apply complicated formatting to each of the items displayed by a control.Repeater control supports five types of templates.HeaderTemplate controls how the header of the repeater control is formatted.ItemTemplate controls the formatting of each item displayed.AlternatingItemTemplate controls how alternate items are formatted and the SeparatorTemplate displays a separator between each item displyed.FooterTemplate is used for controlling how the footer of the repeater control is formatted.The DataList and Datagrid supports two templates in addition to the above five.SelectedItem Template controls how a selected item is formatted and EditItemTemplate controls how an item selected for editing is formatted.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is Partial PostBack in ASP.NET?

598


Elaborate differentiation between Cache and Application?

532


Is it true that a Web service must be written in .NET or not?

575


What describes a query?

525


What are the data controls available in asp.net?

505






What is the difference between dynamic SGA and static SGA?

584


What are session state modes in asp.net?

547


What are the layouts of ASP.NET Pages?

613


What are the benefits of Razor View?

531


What are the different authentication modes in asp.net?

516


if i want to give an alert message like "try after sometime" to a web page which is being seen by other person.if a web page is not seen by anyone then it should display otherwise it show a display a message stating that other person is viewing so try after some time........how can i implement this.

1832


What is the adavantage of using ASP.NET routing?

644


Differentiate between globalization and localization.

536


What is the difference between runtime version and version?

505


What is application variable?

515