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

Gridview dataBound add hyperlink to column data from code behind

Using grid view binding it from code behind: I want to bind a particular column data into a hyper link so when it clicked it should do a download. How to do that ? Below is my code : for (int i = 0; i <= tbl.Columns.Count - 1; i++) { …
Mike
  • 751
  • 2
  • 10
  • 25
1
vote
2 answers

Bound DataGridView: the DataGridViewComboBoxColumn changes to a different value when I click outside it

I hope someone can help me out with an obscure problem that has me absolutely flummoxed. I wish to set up a DataGridView, which allows a user to select an option from a DataGridViewComboBoxColumn, and for the object which is a datasource for the…
1
vote
1 answer

DetailsView in Modal - Modal won't open, conflict with data-toggle

I have a GridView and DetailsView on a page - both databound. I want to select a databound row and open the modal with the populated DetailsView inside. I have LinkButtons within a TemplateField for my select button with the sample bootstrap modal…
1
vote
1 answer

How do you handle NULL values in DataBound controls?

I am trying to limit the characters displayed in ASP.NET Label controls that have their Text values databound to a SQL Database. If the field in the database is not NULL, I do not have any trouble. If they are NULL, I get the exception "Object…
J2Tuner
  • 411
  • 1
  • 5
  • 17
1
vote
1 answer

Silverlight - how to render image from non-visible data bound user control?

I have such situation - I'd like to build timeline control. So I have UserControl and ItemsControl on it (every row represents some person). The ItemsControl contains another ItemsControl as ItemsControl.ItemTemplate - it shows e.g. events for the…
MagicMax
  • 141
  • 1
  • 11
1
vote
2 answers

Sorting databound textboxes in Gridview numerically

I currently have a gridview that is populated by a stored procedure. This stored procedure can not be altered. On my page, I have a drop down box. This dropdown contains all of the column names for the gridview. When a user clicks on a value, the…
Jack
  • 1,453
  • 1
  • 15
  • 35
1
vote
1 answer

The Data Bound ComboBox doesn't update

I have a DataTable with Item information, and a form to order Items. On the Order form there is a ComboBox displaying the Item Names: void fillComboItem() { string constring = @"Data Source=|DataDirectory|\LWADataBase.sdf"; …
Tom
  • 154
  • 2
  • 7
  • 25
1
vote
1 answer

KendoComboBox normal autocomplete behavior not working when databound subscribed

I have a project here that wasn't developed by me. The project technologies: ASP.NET MVC, jQuery, Bootstrap and KendoUI. And, it has a little problem. The KendoComboBox autocompletes the text with the JSON datasource text while you are typing. This…
1
vote
3 answers

saving to and loading from, text file and dataGridView C#

I am needing to have the ability to save data from a dataGridView to a .txt and then be able to load the same data back in to the appropriate spots. It is databound. Here is the code that I have so far. I can save to file but, it will only load the…
1
vote
1 answer

C# Windows Phone: Add static PivotItem to databound pivot page

I have a Pivotpage with pivotitems generated from an ObservableCollection in my ViewModel. To make more understandable what i want to do, lets say those items represent folders and the content of the items are the files located in this folder. What…
csc
  • 607
  • 1
  • 4
  • 15
1
vote
2 answers

display same data in the range of 2 row using DataBound in asp.net c#

I want to display same data in between for a range of 2 dates for C# asp.net using DataBound gridview in asp.net c# example in the image, i want to display the data in between 21-Nov-2013 until 29-Nov-2013 that all the dates in between have the…
1
vote
1 answer

How to add a row into datatable on button click event?

In Windows Forms, I want to add row by row into DataGridView on button click event by taking the values from other controls. I am using DataTable in this case and it is bound to DataGridView. I am using the following code and it is working fine…
Aung Kaung Hein
  • 1,516
  • 5
  • 24
  • 40
1
vote
1 answer

Custom sort xml bound DataGridView

I have a DataGridView bound to xml file. I would like to sort by first column and treat values as integers (not strings). XmlDataDocument xml = new XmlDataDocument(); xml.DataSet.ReadXml("file.xml"); dataGridView.DataSource = new…
Nikola Smiljanić
  • 26,745
  • 6
  • 48
  • 60
1
vote
0 answers

How to Change the text of DATABOUND TEXTBOX in C#?

I want to change the text of databound textbox inside a formview and show the change inline in textbox(not just do this in behind with FIND CONTROL and TextBox Class). All i Know is Until This : TextBox TxtNew =…
1
vote
1 answer

Retrieve Databound List from ListBox

So here's a question that's either so extremely simplistic that it has never been asked before or else it has been asked before, but I'm asking the question wrongly. So say I am databinding a List to a ListBox control in a WinForm. Like…
Derek W
  • 9,708
  • 5
  • 58
  • 67