How To Modify Columns In Data List ( Data Binding In ASP.NET Part -2 )

I previous post i told you how to Create Data Connections (DataBinding) in Asp.net using Expression Web. here i tell you how to modify data column in datalist in Expression Web or Visual Studio (Ver 3.5) 2008.

In Visual studio 2008 or Expression web,templated data-bound controls give you ultimate flexibility over the rendering of data in your pages. You may edit data in DataList,Repeater controls,etc. the way that you data bind controls inside templates have been simplified and improved in Visual Studio 2008 version 3.5.

After you create a Data List, to display different fields from your data source, you can add, remove, or arrange the columns in the existing Data View.Well, using the Item Template, that can be accomplished quite easily.

Now Following previous post Click on Little arrow.

Modify columns Data List data Data Binding
Click on edit template.

Modify columns Data List data Data Binding
You have number of template options,Click on Item Template.
Modify columns Data List data Data BindingNow you are able to edit and delete Column tags,make sure you not edit anything between [ ] brackets.

Modify columns Data List data Data Binding
Here i delete Customer ID,Region... Edit Contact Name,Company etc...

Modify columns Data List data Data Binding

Save the page and see preview in browser,It will look like this:

Modify columns Data List data Data Binding
Next part i will show you in another Tutorial.

Share this

Related Posts

1 comments :

comments
21.3.11 delete

This is a nice article..
Its very easy to understand ..
And this article is using to learn something about it..

c#, dot.net, php tutorial

Thanks a lot..!

Reply
avatar
There was an error in this gadget