ObjectDataSource control acts as a data interface for databound controls such as: GridView, Repeater, FormView and DetailsView.
Questions tagged [objectdatasource]
618 questions
2
votes
2 answers
ASP.NET Control visibility dilemma
I've got a Page, a GridView using an ObjectDataSource with a SelectMethod and a DropDownList. The SelectMethod, among other things, gets a string-array containing several IDs (to filter the Data) - but I also need it as DataSource for the…

Dennis Röttger
- 1,975
- 6
- 32
- 51
2
votes
1 answer
Is this the way to implement ObjectDataSource sorting for a POCO?
I sometimes get the feeling I'm overlooking something when I have to do this much work.
This code successfully sorts one column. The switch statement will have to be manually built out for additional.
Am I overlooking the "actual/easy" way to do…

Aaron Anodide
- 16,906
- 15
- 62
- 121
2
votes
2 answers
I assume SqlParameter.IsNullable only makes sense when…?
1) When SqlParameter.IsNullable is set to true, received null value is converted to DBNull.Value and sent to database. Thus I would assume setting IsNullable to true only makes sense when GridView’s Parameter.ConvertEmptyStringToNull is also set to…

SourceC
- 3,829
- 8
- 50
- 75
2
votes
1 answer
ObjectDataSource Insert throws an Error (using Business Objects)
Quick overview
Trying to insert a Business Object using ObjectDataSource (on a GridView)
Get the following Error
ObjectDataSource 'ObjectDataSource1' has no values to insert. Check that the 'values' dictionary contains values.
Project…

dbones
- 4,415
- 3
- 36
- 52
2
votes
2 answers
ASP.NET: Dealing with object types as parameters when updating in ObjectDataSource
How do you guys update let's say for example a FormView with an ObjectDataSource source. The DataObjectTypeName is a class which I have already marked with a DataObject attribute. Now, I want to customize the update process and add some custom data…

jerbersoft
- 4,344
- 9
- 42
- 48
2
votes
2 answers
Debugging GridView / ObjectDataSource events
Ahoy!
I am using an ASP.NET GridView control bound to an ObjectDataSource:
…

Adam
- 75
- 1
- 2
- 7
2
votes
2 answers
Why do I receive the error "The data object type specified in the DataObjectTypeName property of ObjectDataSource 'ods' could not be found"?
I have an ObjectDataSource on an ASP.NET WebForms page, that also has a data-bound control. The declarative syntax for the ODS looks like this:

AakashM
- 62,551
- 17
- 151
- 186
2
votes
1 answer
Hiddenfield is null when accessing from FetchCount() on Objectdatasource
I am using subsonic and a gridview with objectdatasource (I have not used an objectdatasource before)
The grid binds just fine, my only problem is that I don't want to keep calling the database to get a count of all the records in the table. So when…

Bex
- 4,898
- 11
- 50
- 87
2
votes
2 answers
Whats the point of the ObjectDataSource
Given that every grid, combobox, checkboxlist and in general multi row control supports binding directly to any IEnumerable what is the point of the ObjectDataSource?
Why would one use it as opposed to binding directly to your collection?…

Maxim Gershkovich
- 45,951
- 44
- 147
- 243
2
votes
1 answer
Windows Form BindingSource to LinqToSql fails to apply the 'Filter' property
I'm building a Windows Forms application and on many of these forms I use a BindingSource that is linked to a LinqToSql object. I also have a DataGridView which uses the BindingSource. This works really nice and all the create/edit/update…

Dick de Reus
- 779
- 1
- 7
- 15
2
votes
1 answer
Deleting a record from Gridview with ObjectDataSource
I have a gridview that binds its rows from an objects method:
public DataSet GetObjects()
{
DataSet ds = new DataSet();
DataTable dt = new DataTable();
var source = from p in CommentsList
select new { p.CommentID, p.Img,…

WithFlyingColors
- 2,650
- 4
- 20
- 25
2
votes
2 answers
Error: The ObjectContext instance has been disposed and can no longer be used for operations that require a connection
I use asp.net and EF 4 in C#.
I have a DetailsView with associated a ObjectDataSource.

GibboK
- 71,848
- 143
- 435
- 658
2
votes
3 answers
ObjectDataSource has no values to insert
I'm using an ObjectDataSource to perform CRUD operations. For some reason I am getting an "ObjectDataSource 'ObjectDataSource1' has no values to insert. Check that the 'values' dictionary contains values."
Any suggestions?
I understand that this…

Rich
- 1,895
- 3
- 26
- 35
2
votes
1 answer
I changed ObjectDataSource's SelectMethod but it still returns old values on GridView
I have this two diferent classes to use in my ObjectDataSource:
"getColection" and "getLastColectionByUser"
This is my ObjectDataSource at aspx.
`

user666442
- 63
- 5
2
votes
4 answers
ASP.NET ObjectDataSource Binding Automatically to Repeater - Possible?
I have a Question class:
class Question {
public int QuestionNumber { get; set; }
public string Question { get; set; }
public string Answer { get; set; }
}
Now I make an ICollection of these available through an ObjectDataSource, and…

littlecharva
- 4,224
- 8
- 45
- 52