Welcome Guest Search | Active Topics | Sign In | Register

Editing Grid Item Options
Sanjay
Posted: Thursday, March 12, 2009 12:49:42 PM
Rank: Member
Groups: Member

Joined: 8/26/2007
Posts: 12
Hi
Finally i am able to update my data by typing it by hand. Now i have to insert a dropdown in the Grid. I found advanced custom column in your demo best fits my need. i need a dropdown list pulled from datatable "mytable" and use it for grid. the updated data is same as displayed.

I understand the repeater populates the dropdown

So i tried the code you supplied But it gives me error message

Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error:


If Not Page.IsPostBack Then
Dim MyColumn As EO.Web.CustomColumn = CType(Grid1.Columns(1), EO.Web.CustomColumn)
Dim FloorRepeater As Repeater = CType(MyColumn.EditorInstance.FindControl("mytable"), Repeater)

what is wrong here?
any help would be appreciated


eo_support
Posted: Thursday, March 12, 2009 4:09:27 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

It's mostly because you changed the argument for FindControl. FindControl takes the ID of the repeater control. It has nothing to do with your database "mytable". Once you get the repeater control, you can then worry about how to fill it up with data from wherever you database is.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.