Questions tagged [databound-controls]

55 questions
6
votes
3 answers

Eval and ItemDataBound or RowDataBound event to display data, which one is better?

Which method is better (performance-wise) if I have DataBoundControl such as GridView, Repeater, and/or DataList and I use the following method to display data: Eval("ColumnName") or handling the ItemDataBound or RowDataBound event like: void…
Arief
  • 6,055
  • 7
  • 37
  • 41
5
votes
1 answer

Extending a (ASP.NET) BoundField

I would like to create a control that extends the BoundField that's used within a GridView. What I'd like to do is provide another property named HighlightField that will be similar to the DataField property in that I want to give it the name a…
rball
  • 6,925
  • 7
  • 49
  • 77
4
votes
3 answers

WHY is - 'GENERATE INSERT UPDATE AND SELECT STATEMENT' greyed out?

Why in the ADVANCE section when I 'configure data source' is the 'GENERATE INSERT UPDATE AND SELECT STATEMENT' greyed out? On some tables it isn't greyed out and works fine. I know that a way around this can be achieved by changing the…
CGF
  • 313
  • 3
  • 5
  • 15
3
votes
0 answers

Databound control won't lose focus

I am building a form in which every control databinds to a property of a different class and I have found that there are some controls that simply will not lose focus when I try to leave the control. For example, I have a numericUpDown control that…
3
votes
3 answers

How to handle two-way binding of a SqlDataSource on a ASP.NET ListBox

If I have two listboxes, with a button between them, how do I update the Items of ListBox2 if ListBox2's items are databound?
Chris Nicol
  • 10,256
  • 7
  • 39
  • 49
2
votes
4 answers

ASP.NET: Bind Repeater using jQuery?

I have a Repeater control that I bind server-side. It repeats a series of divs, and does so with no problem. I have some buttons that I use to sort the repeater (newest, highest ranked, random) and this works the way it should. I would like to…
Jason
  • 51,583
  • 38
  • 133
  • 185
2
votes
2 answers

Skipping Items During Data Binding

Greetings! I have a Repeater control that's using an XmlDataSource control. Items
Bullines
  • 5,626
  • 6
  • 53
  • 93
2
votes
3 answers

Databound repeater nested in GridView will not update

I have a Repeater nested inside of a GridView. On the RowDataBound event for the GridView, I set the DataSource (based on one of the row's columns) and then bind the Repeater. This works fine for the initial load, however I need to be able to add…
emd
  • 1,173
  • 9
  • 21
2
votes
1 answer

HierarchicalDataBoundControl.PerformDataBinding not being called on postback

I am binding to a SiteMapDataSource (hierarchical). I am overriding PerformDataBinding to grab the data from the datasource. Everything works great on page load. But when I perform a postback anywhere on the page, the PerformDataBinding method does…
Paul Knopf
  • 9,568
  • 23
  • 77
  • 142
2
votes
4 answers

ASP.NET - Ideal Control to Display a Pivot Table

I am trying to display a tabular set of data in a databound control, but I need to pivot the table such that the individual records are table columns rather than table rows. The end result is a table with a fixed number of columns and a variable…
Nathan Taylor
  • 24,423
  • 19
  • 99
  • 156
1
vote
2 answers

Has ASP.NET any databound control which has fixed header feature?

In ASP.NET, is there any databound control (GridView, DataList, Repeater, ListView etc.) which has fixed header feature? I search on net but find complex solutions for this simple requirement. I am wonder How Microsoft forget to give this simple…
Amit
  • 21,570
  • 27
  • 74
  • 94
1
vote
7 answers

Databound dropdownlist with a million item

Pls Whats the best method of binding a items from(select COLUMN from TABLE) with a million rows on ASP.NET. What I have now is freezing the ASP.NET page, as the dropdownList tries to populate from SQL SERVER, with over a million rows of…
user851971
  • 23
  • 1
  • 7
1
vote
1 answer

Using databound controls to obtain sum from column in related entity in Databound Gridview

I have a gridview that is bound to a datasoure on page load. The datasource is connected to various other database tables, ie. datasourceItem.relatedEntity There is a column in the gridview whose value is dependent upon the sum of a certain field in…
1
vote
1 answer

Generic - Typed CompositeDataBound Control

I have a compositeDatabound control: MyGrid with MyItemTemplate with container of MyContainer. I have a class User. public class MyGrid: CompositeDataBoundControl { [TemplateContainer(typeof(MyGrid.MyContainer))] public ITemplate MyItemTemplate …
gbs
  • 7,196
  • 5
  • 43
  • 69
1
vote
1 answer

WPF 2 ComboBox binding problem

I have the following problem: there is a class with a couple of string properties there is a collection of such class entities That collection is shown in tree on the left of some windows and details shown on the right. I'm binding string…
ProfyTroll
  • 281
  • 5
  • 18
1
2 3 4