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
2 answers

C# Refresh/Update databound control after executing SQL query

I have a databound datagridview for a simple application. I am using the built-in visual studio database, but am using SQL queries to manipulate the data as I prefer it. The datagrid view is only databound because it is a requirement. After…
0
votes
1 answer

ASP.NET GridView BoundField which contains DropDownList

I have a GridView which displays some data from list of objects using BoundField columns.
Denis_Sh
  • 307
  • 3
  • 7
  • 16
0
votes
1 answer

Trying to bind DateTime.Now in gridview

I am using Visual Web Developer Express 2013 and have created a gridview. When I update other values in the grid, I want txtDate to show the time the values were updated. I set it up as an item template.
0
votes
1 answer

Why can't a browser display a local ASP.NET file?

I wanted to build a web application that kids could view 4-H Record Book forms, criteria, and examples from a CD. I wanted it to be in a web page format so that it was platform-independent (compatible with Windows, Mac, and Linux). I wanted to write…
Milliron X
  • 1,174
  • 14
  • 26
0
votes
3 answers

Fill Data in Listbox with another Listbox which is having Data-Bound

I have this two list-box In that first list-box is fill on Combo-box Selected index changed, so List-box 1 is Bounded. Now when I press the > button all selected item in List-box 1 is display in List-box 2. But instead of Names, I get…
Deep Patel
  • 45
  • 1
  • 8
0
votes
2 answers

asp.net-3.5 c# gridview databound

I have a query which return rows with specific fields SELECT First_Name, Midle_Name, Last_Name, Phone_home, Cell_home, ZipCode_Work, Phone_Work, Cell_Work FROM contact_info WHERE (Last_Name = @Last_Name) and here is my code…
Eyla
  • 5,751
  • 20
  • 71
  • 116
0
votes
2 answers

WPF Databound RadioButton ListBox

I am having problems getting a databound radiobutton listbox in WPF to respond to user input and reflect changes to the data it's bound to (i.e., to making changes in the code). The user input side works fine (i.e., I can select a radiobutton and…
Mark
  • 1
  • 1
  • 1
0
votes
2 answers

Not All Xaxis Labels Showing On Chart Control From Bound Dataset

I have a problem with a couple of various chart controls that I am trying to bind to different datasets. Basically, when I run the following query, my chart control will only show every 2nd Label on the X Axis no matter what size I make the…
Riples
  • 1,167
  • 2
  • 21
  • 54
0
votes
3 answers

WPF databound Datagrid change horizontal column orientation depending on data type

I´m trying to change the horizontal column alignment of a databound DataGrid depending on the data type (e.g. Int32, float,..). After searching the web for a simple example for ages I have learned, that DataTriggers via xaml should be the right…
Chris
  • 835
  • 12
  • 27
0
votes
2 answers

Get bound listbox selected values

I thought it is easy but it's not I have windows form with bound listbox (with value member and display member) I enabled multiselect for the listbox so I need to get all and only the selected values of the selected items (remember it's bound so i…
0
votes
1 answer

WPF - clone a databound object?

I am trying to clone a WPF bound object (a listbox) with code like the following pgeIncidentReport newPage = new pgeIncidentReport(); newPage.SetReportData(); string listXaml = XamlWriter.Save(newPage.lstUsers); However, when you view the listXaml…
Unknown Coder
  • 6,625
  • 20
  • 79
  • 129
0
votes
1 answer

Axapta: Form lifecycle question

I am attempting to manually populate an image icon into a window nested in a grid. In the run event, the fields don't appear to have values yet. The string control always returns an empty value. Is there a better place for this code? In .NET, I'd…
Brad
  • 1,357
  • 5
  • 33
  • 65
0
votes
1 answer

Custom BoundField doesn't preserve data between PostBacks with added LiteralControl

I've created a custom BoundField for use with a DetailsView in Edit and Insert modes to utilize Twitter Bootstrap. The control works fine, except when I add in extra LiteralControls to surround the TextBox with some HTML during…
Kirk
  • 16,182
  • 20
  • 80
  • 112
0
votes
1 answer

Test transition from Windows Authentication to SQL Server authentication

I have a windows forms application which connects to an SQL Server 2008 R2 database using variously SMO, databinding, and ODBC connections. Currently it uses entirely Windows authentication, but a client has requested that we also allow SQL Server…
Melanie
  • 1,349
  • 2
  • 17
  • 27
0
votes
1 answer

Hide field in detailsview control but still include value in update query

I am curious as to how one might keep a row hidden from the end user but still have it included in the update process of a detailsview control in asp.net. I have the following fields in the DetailsView control.