Questions tagged [databound]

The state of (or ability to) being bound to a data source. For example, data-bound controls are user interface controls having the intrinsic ability to display and (in some cases) edit data from a specified data source.

Data binding is a general technique that binds two data/information sources together and maintains synchronization of that data. This is often done with two data/information sources with different types as in XML data binding. However, in UI data binding, data and information objects of the same type are bound together (e.g. C# UI elements to C# objects).

174 questions
0
votes
1 answer

Populate gridview based on databound dropdown list selectedvalue change

I have an asp.net application for membership management. One page needs to have a gridview which is populated based on a dropdown list of statuses. I initially thought about hard-coding with a Select Case, but then remembered that the dropdown list…
NJohns
  • 37
  • 1
  • 1
  • 6
0
votes
1 answer

Making multiple copies of a data bound object from a DataGridView - how to decouple them?

I have a DataGridView object to which I've bound a list of objects (of type Asset) returned from a database query. I'm programming in VB using Visual Studio 2005. I want to grab two copies of the bound object (calling them oldAsset and newAsset)…
John
  • 15,990
  • 10
  • 70
  • 110
0
votes
1 answer

Create a hierarchy custom server control

I have a self-referencing table and I want to visualize it using:
I want to create a custom server data-bound control with templates, I have read the MSDN…
0
votes
2 answers

Why I cannot bind a DependencyProperty to an ObservableCollection?

I have a usercontrol done by myself that has a dependency property that is a collection: private static readonly DependencyPropertyKey VerticalLinesPropertyKey = DependencyProperty.RegisterReadOnly("VerticalLines",…
Ignacio Soler Garcia
  • 21,122
  • 31
  • 128
  • 207
0
votes
2 answers

Gridview update a column using another column

I have a gridview bound with a database. I would like to add an extra column which has a linkbutton. The intention is that when clicked on the linkbutton, the user could toggle the value of a column which is bounded with the database. I don't have…
Thijs
  • 3,015
  • 4
  • 29
  • 54
0
votes
2 answers

How can I use the ItemCreated event to update the text of a label control contained in a formview?

How can I replace the text of a label control contained in a formview? I've tried to use the code below: Protected Sub FormViewNews_DataBound(sender As Object, e As System.EventArgs) Handles FormViewNews.DataBound Dim pagerRow As FormViewRow =…
mrjimoy_05
  • 3,452
  • 9
  • 58
  • 95
0
votes
1 answer

Asp.Net Databound and Sessions Conditional Logic

Hello There I'm trying to set the visibility of button in list view item template based on the session object and databound property
Muhammad Usman
  • 163
  • 1
  • 4
  • 20
0
votes
0 answers

Why can't I add OnAppointmentDataBound property to my RadScheduler on my .aspx page?

I am attempting to add an OnAppointmentDataBound property to my RadScheduler control on an aspx page using ASP.NET web forms and create a corresponding method in the code behind page that will update background colors for the control. This is what…
0
votes
1 answer

Selecting item in databound combobox

I believe this question is kinda new-bie, but I can't solve it in correct way. Brief description: I have an inherited from ComboBox class that does some data bindings in constructor: var mdl = new Model(); ValueMember = "id"; …
0
votes
2 answers

How to restrict a custom databound control to accept my custom collection as datasource?

I have created a custom databound control as per my requirements and now I want to restrict this control should take custom collection as datasource instead of every collection which is impelmented IEnuberable interface. Is it possible to restrict?…
Nagendra
  • 31
  • 4
0
votes
2 answers

ListView not calling ItemCreated after postback

I have an asp:ListView where I want to filter the items based on a property of the contained DataItem I want to set the item invisible unless the specified property (FieldName) has the value I'm looking for. protected override void…
Niels Ziegler
  • 466
  • 2
  • 6
  • 15
0
votes
1 answer

Databound Labels not reflecting changes after TableAdapter is filled?

I'm experiencing a strange behavior and I've spent many hours trying to figure out what's going on to no avail. The situation is that I have several labels that are databound to database fields, and that after I run a fill command on the…
adanti
  • 1
0
votes
1 answer

WindowsPhoneDataBoundApplication with web service

I want to merge between my code that contains the Web service and the code of WindowsPhoneDataBound Application.Is it possible? and how? My Code: private void button1_Click(object sender, RoutedEventArgs e) { Uri url = new…
MarTech
  • 115
  • 3
  • 12
0
votes
2 answers

Retrieving data from isolated storage into viewmodel

I am having a serious mental block here and am in departate need for some help. I am using the Windows Phone Databound Application as the starting point of my project and am reasonably happy with how the model,viewmodel and view interact. My issue…
0
votes
2 answers

How do I Catch errors on/before DataBound event

Once the databind is completed, I fire off the databound event. I wanted to catch any error that might have occurred so I dont run the StoredProc "sp_UpdatePrintQueueToPrinted". How do I Catch errors on/before DataBound event? protected void…
Ravi Ram
  • 24,078
  • 21
  • 82
  • 113