Current location: Hot Scripts Forums » Programming Languages » ASP.NET » Dropdown in Datagrid


Dropdown in Datagrid

Reply
  #1 (permalink)  
Old 09-14-05, 09:19 AM
andreasberglind andreasberglind is offline
Newbie Coder
 
Join Date: Jul 2003
Location: Sweden
Posts: 66
Thanks: 0
Thanked 0 Times in 0 Posts
Dropdown in Datagrid

I am trying to use dropdowns in editmode in my datagrid. I have created a TemplateColumn, and then put the <asp:dropdown> tag in there. The dropdown shows, but I canīt bind data to it, since the .FindControl function doesnīt support DataSource = command.executeReader().

How do I do this? Thankful for any help I can get, especially if itīs in C#...
Reply With Quote
  #2 (permalink)  
Old 09-22-05, 07:22 PM
koncept
Guest
 
Posts: n/a
http://aspnet.4guysfromrolla.com/articles/080702-1.aspx

they have one of the most complete tutorials on the datagrid i have seen
Reply With Quote
  #3 (permalink)  
Old 10-22-05, 03:15 AM
Muhammad Zubair Muhammad Zubair is offline
New Member
 
Join Date: Oct 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
User the databinding property dialog to bind

user the following statement to bind
DataBinder.Eval(Container.DataItem, "Edit")
edit it accounting to your case

for more details see the Chepter 7 of Working with ASP.net Data Drivein
Ref:
http://www.booksalbum.com/Books/Book...0398_ch07.html
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to pass the value of a dropdown menu back to the dropdown. Dr.Jamescook PHP 2 05-28-05 08:11 PM
Help - Datagrid problem with "linefeed"/carriage return zissorbobo Windows .NET Programming 1 03-02-05 09:21 AM
Datagrid and carriage return? zissorbobo ASP.NET 1 02-22-05 06:50 AM
Retrieve a list of value from a datagrid. MistyJoy Visual Basic 0 01-05-05 08:02 PM
Height constraints with the DataGrid Control dserrano Visual Basic 0 01-06-04 02:54 PM


All times are GMT -5. The time now is 01:07 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.