Questions tagged [databound-controls]

55 questions
1
vote
1 answer

Group data in columns (instead of rows) in an HTML table using data bound control?

Is there a way to group data into columns using a data bound control in ASP.NET? Normally, binding a control to an array of objects, I think of each object as a row. In a typical HTML table, the markup flows the same way and you get get something…
Orange Kid
  • 524
  • 1
  • 12
  • 25
1
vote
0 answers

Access model bound item inside nested UpdatePanel

What is the correct method to access the data-bound item inside of a nested UpdatePanel? I've recently discovered model binding and love the strongly-typed binding it offers, but I have a scattering of UpdatePanels throughout the page, and it seems…
Ian
  • 1,475
  • 2
  • 15
  • 31
1
vote
1 answer

Adding Dynamic Image Overlay to Databound Gridview

I am trying to add an image overlay of a cell within a data bound gridview cell in ASP.Net (C#). The effect is designed to have a string within the image that is going to sit on top of the image that is pulled from the server. IE: Database contains…
Xesaniel
  • 62
  • 3
  • 6
  • 14
1
vote
1 answer

Flex 4 Drop Down List - bound with data service, how to always keep prompt or add item at index -1 programmatically

I have a drop down list that is bound using an HTTP data service from a database (set up through the wizard, not as a declaration). My drop down list changes the values in my datagrid and I need that "Select One" null value so that users can select…
mel
  • 11
  • 2
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
1 answer

Designer problem with CompositeDataBoundControl

I have a custom class: SimpleTemplatedControl : CompositeDataBoundControl private ITemplate _itemTemplate; [PersistenceMode(PersistenceMode.InnerProperty), TemplateContainer(typeof(SimpleItem)), ] public ITemplate ItemTemplate …
Nyla Pareska
  • 1,377
  • 6
  • 22
  • 37
1
vote
1 answer

Error in code dealing with Nested Repeaters and Databound label from a SQL database query

I am working on the following codes which the first repeater gets certain information from a SQL database query and then the nested repeater uses the LabelID to do the second SQL query. I am getting this error: Description: An error occurred during…
fosscm
  • 33
  • 3
1
vote
0 answers

unbound controls table using ADO.NET

how to fill table/grid through unbound control using ADO.NET C#. using (SqlConnection Connection = new SqlConnection()) { Connection.ConnectionString = ConnectionString; Connection.Open(); SqlDataAdapter Adapter =…
Mubashir Ali
  • 559
  • 2
  • 8
  • 23
1
vote
1 answer

bound text boxes do not show adding new row

I'm using a datagridview, bindingnavigator and textboxes hooked to a bindingsource (set in code). When I select row in the grid the contents show in the textboxes, all is well. txtQty.DataBindings.Add("Text", bsInvoiceDetails,…
pStan
  • 1,084
  • 3
  • 14
  • 36
1
vote
2 answers

Is there DataBound in DataGrid?

in GridView: proctected sub gridview.DataBound(Byval sender as object, byval e assystemEventArgs) handles gridview.databound { } how to use DataBound in DATAGRID??
Zeeju
  • 99
  • 1
  • 11
1
vote
2 answers

WPF - Unable to clear items from a databound itemscontrol

I've created a combobox and have bound it to an observableCollection. Something like myCmbBox.ItemsSource = myObsCollObj My scenario is onLoad of the application I shall populate my observableCollection with some values. Now, my UI also gets…
Jithu
  • 447
  • 1
  • 9
  • 21
1
vote
3 answers

How to set default values for data bound controls for addition in VB.NET

I have a vb.net 2010 form with 22 data bound controls from two tables held in a dataset which is navigated by a bindingnavigator. This successfully adds deletes and updates. However what I need is when adding a new record I need some of the fields…
feldoh
  • 648
  • 2
  • 6
  • 19
0
votes
1 answer

Data Grid DataFormatString formatting not working

I came accross an issue a few days ago which I'd completely forgotten about, and noticed it wasn't mentioned on SO. In an ASP.Net document, a datagrid was created dynamically as part of a business intellgience tool. The data format string was being…
Hooloovoo
  • 2,181
  • 3
  • 16
  • 21