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

DataGridView databound combobox displayed text disappears on mouse over

I have a DataGridView control with two databound combobox columns. When a user adds a row and selects a value in the first combobox column the second column only offers appropriate values from the databound table. An example might be Countries in…
ValMac
  • 11
  • 4
1
vote
3 answers

Project Data Sources are missing When i link DataGridView to DataSource

Something happens strange... I have a Receipt.cs class in my project. When i try to bound my datagridview to this class then there is no option of Receipt.cs in Choose Data Source Option. In my previous project everything works well in visual…
Umair Mahmood
  • 63
  • 1
  • 9
1
vote
3 answers

How can I access a ButtonFields text, if it's not considered as a TableCell?

I'm trying to access text from a ButtonField(databound), but I can't get the text if I refer to it as a TableCell. What can I do to get its text? Markup:
Since_2008
  • 2,331
  • 8
  • 38
  • 68
1
vote
1 answer

Programmatically Checking DataBound CheckListBox

I have a DataBound "CheckedListBox", I need to check some items on it. I tried with following code... if (!string.IsNullOrEmpty(search.Languages)) { string[] langs = search.Languages.Split(','); for (int i = 0; i <…
Buddhi Dananjaya
  • 643
  • 2
  • 12
  • 32
1
vote
1 answer

Cannot Re-Bind Databound ComboBox in VB.Net

I have cascading data-bound combo boxes, however, if the second of the two boxes does not have the value, I am trying to change the data source of the original process to the default selection. However I am getting errors no matter what I try to do…
RiddlerDev
  • 7,370
  • 5
  • 46
  • 62
1
vote
1 answer

Conditional statement in databound expression

I want to display an image if 2 conditions are met. The data item is not null The value of the data item is greater than 0 Markup vb.net
user356808
1
vote
2 answers

how to remove data bounded Dropdown list item on page load?

i have a Drop-down list which is data bounded from a table and i want to remove an item from it on page load, but the problem is nothing is happening from this piece of code: on page load: protected void Page_Load(object sender, EventArgs e) { …
Jai hind
  • 85
  • 1
  • 11
1
vote
1 answer

How to hide an empty databound DropDownList

I have a databound DropDownList and I need a code that will only show the DropDownList if there is a value in the Database, if the there is no value/empty DropDownlist it should not be visible. I tried: if (ddlFruits.Items.Count == 1) { …
Jana Pasch
  • 9
  • 1
  • 9
1
vote
1 answer

DataBound WPF ListBox Styling on ListBoxItems

I have a ListBox that during development I had the items in the ListBox hardcoded and styled. This is how the items were styled.
John Batdorf
  • 2,502
  • 8
  • 35
  • 43
1
vote
2 answers

WPF ListBox Can you make it cycle? IE not hit hard stops at top and bottom

I have a WPF ListBox bound to a data object. Inside the listbox are a series of images with text. It is layed out in a horizontal fashion, and mousing over the left or right sides of the box scroll the items left or right respectively. let's say…
John Batdorf
  • 2,502
  • 8
  • 35
  • 43
1
vote
1 answer

How to access the bound DataSource item in the ASP.NET ListView's DataBound event?

I know the question has already been posted here but we didn't get to an real solution. I have bound my ListView to an SqlDataSource and I want to write some text in a control present in the view created in the LayoutTemplate depending on some…
Kralizek
  • 1,999
  • 1
  • 28
  • 47
1
vote
4 answers

After every postback dropdownlist items repeats

I have bind my dropdownlist with database. But on each PostBack the items in dropdownlist gets repeat again. e.g. OnPage Load I have this items in dropdownlist 1,2,3,4.. etc Now suppose page gets postBack then it looks like 1,2,3,4,1,2,3,4 Vb…
user3966883
1
vote
2 answers

asp.net perform action after child controls databound complete

I have a usercontrol that acts as a container to hold more usercontrols within it. I need to perform certain access checks once all of the child controls have databound. I was hoping I could attach to a usercontrol.databound event but there does…
Daniel Powell
  • 8,143
  • 11
  • 61
  • 108
1
vote
0 answers

Access 2007 not auto-updating calculation with bound fields

I developed an Access 2003 database with a form that has a number of bound input text fields. As the user update the value in these fields, the table is updated with the changed value. I also have an unbound textfield that displays a calculated…
Sivakanesh
  • 817
  • 4
  • 13
  • 36
1
vote
1 answer

Filter Bound DataGridView by Unbound Column

I have a DataGridView bounded to a DataTable from a DataSet.xsd. I added by code one additional column called _RowString to the DataGridView. It contains a string composed by all the string values contained into the other columns of the DataTable…
Cheshire Cat
  • 1,941
  • 6
  • 36
  • 69