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
1
vote
1 answer

ASP.NET: Gridview Showing a button on a row, when a row cell vlaue = false in the Bound row from the database

I have a GridView binded to a datasource, i was wondering of how i can check a row cell value (bool) from the database row being bound , and then show a button on the rows where the cell value equals to false.. i am using OndataBound Event to…
Madi D.
  • 1,980
  • 5
  • 23
  • 44
1
vote
1 answer

How do I update bound data in d3

How do I update data bound in d3.js? Why can I only access the bound data but not modifying it? Also I would like to modify cx using the bound data. But in order to do that I need to update the data. var dataset = [10, 110]; var svg =…
Thorsten Niehues
  • 13,712
  • 22
  • 78
  • 113
1
vote
1 answer

Data bound drop down in a gridview template

I need to limit the values in a data bound drop down placed in a template column in a gridview based on the text in another column in that row of the gridview. I also want the dropdown to be databound. Aparently, these two things are not possible…
user203911
1
vote
0 answers

C# Update a databound ComboBox after inserting a record into sql database

in my form I'm using a combo box to be able to select a record from the database, and then populate text boxes. Whenever I add a record (or update, delete) the combobox doesn't get the updated data until I close and rerun the program. The combobox…
1
vote
2 answers

C#, Databound Datagridview showing wrong Data after inserting row programmatically

I´m having a problem with a databound DataGridView: I´m using a view including inner joins from an SQL-Server Database as Datasource. When I insert rows programmatically the Data is written correctly, but the DataGridView is not displaying the data…
Chris
  • 835
  • 12
  • 27
1
vote
4 answers

datagridview not updating to bound datasource

I am trying to get the datagridview to update when I update the datasource and I'm having no luck whatsoever. Here is my binding: Private _dgbNews As SortableBindingList(Of SalesMessageRecord) Private Sub SalesMessageScreen_Load(sender As…
ErocM
  • 4,505
  • 24
  • 94
  • 161
1
vote
1 answer

Programmatic Entry on databound datagridview's uncommitted row isn't causing new row to appear. When selected, entry disappears

I have a training project at my new job and a really small but crucial setback. I have a datagridview control bound to a dataset read from an xml file. It has 3 columns: item, price, calories. I am supposed to calculate the average values for price…
Gerald
  • 31
  • 1
  • 7
1
vote
0 answers

Creating a Custom Data-Bound Web Control - How to Persist the Data Source?

It's been a while that I'm trying create a custom Data-Bound web control without success. My problem is when the postback occurs the data source is not persisted. All the scarce samples that I found doesn't work either. Even on the sample provided…
Alexandre Perez
  • 3,355
  • 3
  • 21
  • 21
1
vote
1 answer

ASP.NET Databound fields -> How to check checkboxfield

I have a problem and I can't find an answer to it. In VS2012 I created an ASP.NET website in C#. I have my membership provider setup and working, now I wanted to make an adminpage where an admin could edit the role and block a user. From the server…
DerpyNerd
  • 4,743
  • 7
  • 41
  • 92
1
vote
3 answers

Filtering DataGridView rows when DataSource is bound to a EF5 Entity collection

I have a DataGridView which is databound to a BindingList private void InitGrid() { Ctx.MyEntitySet.Load(); dataGridView1.DataSource = Ctx.MyEntitySet.Local.ToBindingList(); dataGridView1.Columns["Id"].Visible = false; …
silentman.it
  • 361
  • 5
  • 18
1
vote
2 answers

Set Value of Enum Bound ComboBox Programatically

I am using this: Databinding an enum property to a ComboBox in WPF databinding for my comboboxes. I am unable to set the value of the comboboxes programatically though. Once it is bound, I can't set the SelectedItem, SelectedValue, or Text. …
Nathan Tornquist
  • 6,468
  • 10
  • 47
  • 72
1
vote
0 answers

Using combobox in databound datagridview

Looking for a sample of a databound datagridview in vb.net. Each row needs a cell with a combobox that receives its data from an access database. The user should be able to make choices from the combobox and change the data. The data is specific…
r1bryan
  • 21
  • 4
0
votes
2 answers

Publish two types of field information on same column in ASP.Net grid view

I want to publish two types of information on same column in ASP grid view.
devan
  • 1,643
  • 8
  • 37
  • 62
0
votes
1 answer

C# Databound Listbox Refresh

I've checked the answers on this topic however I still have no idea why this is not working! PLEASE HELP! private void btnAdd_Click(object sender, EventArgs e) { SqlCeCommand insTitle = new SqlCeCommand("Insert into Titles(Title)…
user799920
  • 19
  • 1
  • 5
0
votes
1 answer

WPF Creating a ControlTemplate that is DataBound

I have a control bound to an Object and all is well but I want to turn it into a control template bound to different objects of a similar type. I would like to do this exclusively in xaml, if possible. Any good tutorials that outline the…
Brad
  • 1,187
  • 3
  • 23
  • 44