.Net Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming Languages - More.Net Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old March 19th, 2012, 07:42 AM
sumanthk sumanthk is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2012
Posts: 2 sumanthk User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 51 m 5 sec
Reputation Power: 0
Post Display Paticular Fields in Gridview using 3-tier

Hi all,
In my form i have a fields

1.sno,
2.Name,
3.Address,
4.Phoneno,
5.Dateofbirth

Now i want to display the particular fields in Grid view like
1.sno
2.Name and i use Edit and Delete option in Grid view

If i Click Edit button in grid view all the fields in my form have to edit (i.e
sno,name,address,phoneno,dateofbirth)
i am using Enterpriselibrary using 3-tier architecture

can any one send me code with description

Thank You
Sumanth

Reply With Quote
  #2  
Old September 27th, 2012, 08:29 AM
diyaots diyaots is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2011
Posts: 117 diyaots Negative: is most likely a SPAMMER and a traitor to the cause. 
Time spent in forums: 1 Day 29 m 41 sec
Reputation Power: 0
Use template columns instead of data bound column

Hi Friends

Please find the answer of this question:

Use template columns instead of data bound column: eg.

// For non editable column
<asp:TemplateField HeaderText="User ID">
<ItemTemplate>
<asp:Label runat="server" ID="lblUserID" Text='<%# Eval("UserID") %>' />
</ItemTemplate>
</asp:TemplateField>
// For editable column
<asp:TemplateField HeaderText="First Name" >
<ItemTemplate>
<asp:Label ID="lblFirstName" runat="server" Text='<%# Eval("NAME") %>' />
</ItemTemplate>
<EditItemTemplate>
<asp:TextBox ID="txtFirstName" runat="server" Text='<%# Eval("NAME") %>' />
</EditItemTemplate>
</asp:TemplateField>

Thanks
Diya

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - More.Net Development > Display Paticular Fields in Gridview using 3-tier

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap