By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,584 Members | 1,774 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,584 IT Pros & Developers. It's quick & easy.

DataItem = Nothing in DotNetNuke

P: n/a
I recently installed DotNetNuke and started using it and it's
framework. One thing I have a problem with is that the CBO functions
(FillCollection) returns ArrayLists and this is then bound to
DataGrids etc. When you then access the DataGrid Commands there are no
value in e.Item.DataItem. What I would like to do in the ItemDataBound
Sub, is the following:

Dim dr As DataRowView = CType(e.Item.DataItem, DataRowView)
Dim ddlType As DropDownList
ddlType = CType(e.Item.FindControl("ddlType"), DropDownList)
ddlType.Items.FindByValue(dr("Type")).Selected = True

This works when you bind a DataTable to a grid but not with an
ArrayList.

Can anyone please help?
Nov 18 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
try asking at the dotnetnuket group at www.asp.net forums

--
Regards

John Timney
Microsoft Regional Director
Microsoft MVP
"Pierre Dippenaar" <pi****@sentinal.co.za> wrote in message
news:d1**************************@posting.google.c om...
I recently installed DotNetNuke and started using it and it's
framework. One thing I have a problem with is that the CBO functions
(FillCollection) returns ArrayLists and this is then bound to
DataGrids etc. When you then access the DataGrid Commands there are no
value in e.Item.DataItem. What I would like to do in the ItemDataBound
Sub, is the following:

Dim dr As DataRowView = CType(e.Item.DataItem, DataRowView)
Dim ddlType As DropDownList
ddlType = CType(e.Item.FindControl("ddlType"), DropDownList)
ddlType.Items.FindByValue(dr("Type")).Selected = True

This works when you bind a DataTable to a grid but not with an
ArrayList.

Can anyone please help?

Nov 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.