[Mono-bugs] [Bug 75076][Nor] Changed - Setting the datasource of a
dropdownlist not filling dropdownlist with items
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Sat May 28 10:54:58 EDT 2005
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by cmorgan at alum.wpi.edu.
http://bugzilla.ximian.com/show_bug.cgi?id=75076
--- shadow/75076 2005-05-28 02:08:55.000000000 -0400
+++ shadow/75076.tmp.5165 2005-05-28 10:54:58.000000000 -0400
@@ -1,13 +1,13 @@
Bug#: 75076
Product: Mono: Class Libraries
Version: 1.1
OS: unknown
OS Details: Debian unstable 2.6.10 kernel
-Status: RESOLVED
-Resolution: NOTABUG
+Status: REOPENED
+Resolution:
Severity: Unknown
Priority: Normal
Component: Sys.Web
AssignedTo: gonzalo at ximian.com
ReportedBy: cmorgan at alum.wpi.edu
QAContact: mono-bugs at ximian.com
@@ -53,6 +53,26 @@
------- Additional Comments From gonzalo at ximian.com 2005-05-28 02:08 -------
We do the same as MS does, i.e., nothing is in the dropdownlist.
You're missing a call to unitsDropDownList2.DataBind () (or
Page.DataBind or ...) and that's why no data is shown.
+
+------- Additional Comments From cmorgan at alum.wpi.edu 2005-05-28 10:54 -------
+Alright, I watered this example down too much. The original problem I
+was seeing was that the dropdown inside of a datagrid wasn't binding
+correctly, note this comment:
+
+"Returning to our example at hand (the DropDownList in our
+EditItemTemplate tag), this means that the "DropDownList that is
+currently being edited"'s DataBind() method will be called when the
+DataGrid's DataBind() method of the DataGrid is called. Armed with
+this knowledge we might reason that we could set the DropDownList's
+DataSource to some DataSet and have the DropDownList's DataBind()
+method be automatically called. The problem is, what do we set the
+DropDownList's DataSource property to? The answer is to use more
+databinding syntax!"
+
+from this page of this article:
+http://aspnet.4guysfromrolla.com/articles/080702-1.2.aspx
+
+I'll attach a testcase of this situation, sorry for the confusion.
More information about the mono-bugs
mailing list