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
23
votes
1 answer

WPF - How do I default the Visibility of a databound Textblock?

This Textblock, defined below, shows when the window first loads because it has no Datacontext (and hence the converter code is not run) until an item has been selected from another control e.g. TreeView.
empo
  • 1,133
  • 5
  • 21
  • 41
20
votes
7 answers

Data bound radio button list in WPF

I have a list of options in a data object, and I want to make the equivalent of a radio button list to allow the user to select one and only one of them. Functionality similar to a databound combo box, but in radio button format. Silly me, I…
Scott O.
  • 898
  • 1
  • 9
  • 15
19
votes
6 answers

How do I find the Client ID of control within an ASP.NET GridView?

I have a asp:GridView which contains a asp:TextBox within a TemplateField. I would like to obtain it's ID for use in javascript. Something like this:
Keltex
  • 26,220
  • 11
  • 79
  • 111
10
votes
4 answers

how to have columns on GridView with different data sources?

I am trying to dynamically create a GridView. One of the columns is the user who created the row. JobDebrief jd = new JobDebrief(JobID); Job jb = new Job(JobID); DataGrid db =…
user123456789
  • 1,914
  • 7
  • 44
  • 100
10
votes
2 answers

Anonymous type in Repeater DataBound event

I'm setting the DataSource of an ASP.NET repeater as follows: rptTargets.DataSource = from t in DB.SalesTargets select new { t.Target, t.SalesRep.RepName }; Now, in the repeater's OnDataBound event, how can I retrieve the RepName and Target…
staterium
  • 1,980
  • 2
  • 20
  • 32
8
votes
5 answers

How to dynamically refresh a .NET databound repeater control

I have a .NET repeater control that is data-bound to a List. As part of the Repeater's Item Collection, I have a "Remove Button" that effectively removes this current List element. This works, in code-behind I can successfully remove an item from…
Ash Machine
  • 9,601
  • 11
  • 45
  • 52
5
votes
2 answers

Setting SelectedValue of a data bound DropDownList

I have an asp.net dropDownList which is automatically bound to a sqlDataSource to values of client type on page load. On page load I am also creating a Client object, one of it's properties is ClientType. I am trying to set the SelectedValue of the…
Dov Miller
  • 1,958
  • 5
  • 34
  • 46
5
votes
2 answers

How to programmatically insert a row in a GridView?

i have a databound GridView in asp.net 2.0 with a row-selection link. When a row is selected, I want to programmatically add a table row below the selected row, in order to nest another grid et al. I am researching this for a client and for an…
Steven A. Lowe
  • 60,273
  • 18
  • 132
  • 202
3
votes
2 answers

C# - Setting up data-bound cascading combo boxes at design time

I have what I thought would be a simple problem but cannot find an appropriate example after much searching. Put simply, it is a windows form application with 2 databound combo boxes on the form with the first being for "Department" and the second…
James
  • 31
  • 1
  • 2
3
votes
0 answers

Databound control won't lose focus

I am building a form in which every control databinds to a property of a different class and I have found that there are some controls that simply will not lose focus when I try to leave the control. For example, I have a numericUpDown control that…
3
votes
2 answers

Kendo UI Dropdownlist client-side filter not working if dataBound is used to set selected value

The problem is when using Kendo UI Dropdownlist with the dataBound method to set the selected value at load. The reason for setting the value in the DataBound method is to ensure the transport has returned with the dropdownlist's dataitems to…
Easton James Harvey
  • 1,672
  • 1
  • 14
  • 24
3
votes
3 answers

Disable separator selection in data bound combo box in WPF

I have a Combo Box that is databound. In this list, I need a separator. Since this is databound, I do something very similar to this post. My database returns the list, includes a '-' to mark where the separator needs to go, and the datatrigger…
jmlumpkin
  • 922
  • 2
  • 14
  • 34
3
votes
1 answer

Can't find controls in FormView.InsertItemTemplate even on DataBound event

I have FormView in my page markup:
abatishchev
  • 98,240
  • 88
  • 296
  • 433
3
votes
3 answers

How to handle two-way binding of a SqlDataSource on a ASP.NET ListBox

If I have two listboxes, with a button between them, how do I update the Items of ListBox2 if ListBox2's items are databound?
Chris Nicol
  • 10,256
  • 7
  • 39
  • 49
3
votes
2 answers

Kendo Grid - How to stop or prevent Databound event

I have Kendo grid as empty. Then I add one row, entering values and call saveRow() method. This will call controller and returns message, based on message I want to clear added(newly) record. I have used the code is: grid.dataSource.data([]); this…
Vicky
  • 141
  • 2
  • 2
  • 5
1
2 3
11 12