ObjectDataSource control acts as a data interface for databound controls such as: GridView, Repeater, FormView and DetailsView.
Questions tagged [objectdatasource]
618 questions
4
votes
1 answer
Data binding and user controls
This is really bugging me, so I hope someone can help me a bit
1) Assuming page contains user control, then Page.Page_Load is fired prior to UserControl.Page_Load:
a) I assume that if Page contains ObjectDataSource1 control, then ObjectDataSource1…

SourceC
- 3,829
- 8
- 50
- 75
4
votes
4 answers
what characters should be escaped in sql string parameters
I need a complete list of characters that should be escaped in sql string parameters to prevent exceptions. I assume that I need to replace all the offending characters with the escaped version before I pass it to my ObjectDataSource filter…

Slim
- 5,635
- 7
- 31
- 30
3
votes
1 answer
Any documentation available for xe:objectData?
It seems, that the objectData control can be used as a performance boost for an xpage application. I understand the basic idea behind, but still have trouble to get it to work properly.
Using a objectData as input for a repeat control avoids the…

Ulrich Krause
- 1,101
- 9
- 19
3
votes
1 answer
Does Telerik Reporting support Business Object Datasources?
I have a requirement to use business objects to call strongly typed table adapters in a three tier model. I also have a requirement to use Telerik reporting, which I didn't see any examples of online. I just see simple examples of creating a…

Jon
- 375
- 5
- 15
3
votes
2 answers
Populate GridView with object data
Wondering the best way to populate a GridView with my object data.
I have to show a product list from an complex object Sale, whose structure is something like this:
class Sale {
int id;
List saleItems;
}
class SaleItem {
int…

Yuri Ghensev
- 2,507
- 4
- 28
- 45
3
votes
0 answers
Criteria for object datasources to display in Visual Studio Report New DataSet?
In the "Report Data"..."New Dataset" dialog, I only have about 5 classes. None of my main business classes are showing up. Some that do show up don't show and properties. Some that show up are generic and there is not much point even showing…

Cade Roux
- 88,164
- 40
- 182
- 265
3
votes
1 answer
If controls are always binded to data source controls in the order they are declared then
A) Question below is based on the assumption that controls are always binded to data source controls in the order they are declared? So in our example SqlDataSource1 will connect to data source prior to SqlDataSource2 and thus lstCities will be…

SourceC
- 3,829
- 8
- 50
- 75
3
votes
2 answers
How do you manually databind complex object to templated control like a row in a gridview?
I am struggling with the databinding syntax here. For example I have a data structure like this -
public class Course{
public string CourseName {get;set;}
public string CourseCode {get;set;}
public List…

Perpetualcoder
- 13,501
- 9
- 64
- 99
3
votes
4 answers
How to Remove all Item in ListView when it bindto ObjectDataProvider
I bound a ListView to ObjectDataProvider.I get some value from user and change my ObjectDataProvider at runtime but when my ObjectDataProvider updated all of it's Item add to ListView and replace them.I use this…

Arian
- 12,793
- 66
- 176
- 300
3
votes
1 answer
ObjectDataSource Paging -> no data displayed in GridView
i have an objectdatasource and a gridview configured as shown below (using VS2008 w/ .NET3.5):

marcelhenning
- 91
- 4
3
votes
1 answer
Gridview and objectDatasource
I am trying to bind this to a gridview..
var source = from p in allComments
select new { p.Img, p.Name, p.Comment };
GridView1.DataSource = source;
GridView1.DataBind();
all Comments has
But it wont bind cause my gridview…

Dmitry Makovetskiyd
- 6,942
- 32
- 100
- 160
3
votes
1 answer
ObjectDataSource Selecting method can't 'see' any other control's values
I don't even know how to state this clearly, and there's too much code to paste it all in here.
Let me start off with a general description and maybe it'll ring a bell. I have a DataGrid which uses an ObjectDataSource. The ObjectDataSource uses a…

Keith Myers
- 1,379
- 2
- 15
- 29
3
votes
3 answers
How to change the SelectMethod of ObjectDataSource programatically?
Suppose I have a given ObjectDataSource, this objectdatasource "SelectMethod" property is set to "GetProjectsByUsername" of a class Project and accepting one parameter.

Sherwin
- 65
- 1
- 1
- 5
3
votes
1 answer
How to bind objects correctly with reportviewer?
I've been studying report viewer recently and I have one problem I cannot resolve...
I'm trying to bind data from a collection of objects (headers) where each object has a collection of child objects (rows). How can this be done? Below are pieces of…

Dave81
- 2,975
- 1
- 16
- 9