Questions tagged [itemdatabound]

74 questions
0
votes
0 answers

how to dynamically assign id to controls - controls are inside datalist in asp .net

I am using datalist for showing datas. Datas are test questions with 4 options.I have 50 questions displaying in datalist. By using ItemDataBound event - i am making visible only one question with 4 options to user. Remaining questions are invisible…
0
votes
2 answers

ListView sum column total and display in label returns null

I'm trying to sum all the values from the July column into a label with ID of july. Here's the markup:
psdpainter
  • 631
  • 1
  • 10
  • 25
0
votes
2 answers

Lost DataKey value in ItemDataBound of ListView when paging

I'm binding data to GridView nested in ListView via ItemDataBound and when I'm paging ListView it's loosing datakey value. Here is DataBound event: Protected Sub gvResult_ItemDataBound(sender As Object, e As…
andrey.shedko
  • 3,128
  • 10
  • 61
  • 121
0
votes
2 answers

Nested Repeaters Asp .NET ItemDataBound not called?

I am trying to nest 2 repeaters. 2nd repeater is data bound on first repeater's itemDataBind event.

<%#…

lucafik
  • 295
  • 1
  • 6
  • 18
0
votes
1 answer

Hide linkbutton in Datagrid templatecolumn for the first row only

I'm trying to hide the "Delete" linkbutton in the datagrid for the first row only, but would like to display "Delete" linkbutton button in rest of the rows. How can i achieve that, any help is much appreciated.
0
votes
1 answer

I have a repeater and a dropdownlist inside this repeater

I am populating dropdownlist inside a repeater (DropDownList is filled with values from database) protected void Repeater1_ItemDataBound(object sender, RepeaterItemEventArgs e) { try { if (e.Item.ItemType ==…
0
votes
3 answers

asp.net repeater - get value of row item _DataBound

how can I get the value of each cell that I want in a repeater _DataBound sub? - this is so I can change the value a little and apply the change to a literal
thegunner
  • 6,883
  • 30
  • 94
  • 143
0
votes
1 answer

Why isn't this itemDataSource being cleared?

I'm trying to remove all items from an itemDataSource in my application. The itemDataSource is bound to a listview. I've managed to remove a single item when it's clicked on in a listview, but removing all items is causing me problems :( This is…
Joel Murphy
  • 2,472
  • 3
  • 29
  • 47
0
votes
1 answer

Dropdownlist findbyvalue inside repeater using itemDatabound

I'm trying to set up a repeater that features dropdowns that have their values selected upon their data being bound from an array populated from a db using linq. The problem I'm having is that each of the dropdownlists have the same selected value…
stolbejj
  • 3
  • 3
0
votes
1 answer

c# asp Repeater data not showing when using ItemDataBound to create a button based on field

basically i am trying to populate a departments table and based on, say the change date, create a button for whatever departments fall within a certain date range. Problem is, the button creates but there is no data, heres what i have so far -…
JazziJeff
  • 721
  • 4
  • 17
  • 35
0
votes
1 answer

ItemDataBound Called twice on delete command

I ve an issue with a listview. Im doing that when delete button is clicked in the listview:(code simplified, it delete as it should) Protected Sub rlvCarts_ItemCommand(sender As Object, e As RadListViewCommandEventArgs) If e.CommandName =…
user1037839
0
votes
1 answer

reduce ItemDataBound event time

I have a list of 100 hotels in which i have to show the 10 images per hotel . I used the DataList control for this . As my images are stored in different table so i have to query each time for list of images using HotelId in ItemDataBound Event .…
rahularyansharma
  • 11,156
  • 18
  • 79
  • 135
0
votes
1 answer

asp:Repeater - How to make "StringEnumerator" move to next item in "ItemDataBound"?

Here is the snapshot of repeater code. I have problems with geting all the values. In result my "repeater" prints only first element in collection.
Juri Bogdanov
  • 295
  • 1
  • 11
  • 19
-1
votes
1 answer

Radgrid inside editform settings

I have a radgrid inside the edit form.I am binding the radgrid on the itemdatabound. int id= Convert.ToInt32(editForm.GetDataKeyValue("ID").ToString()); RadGrid SummaryGrid = (RadGrid)item.FindControl("SummaryGrid"); …
user1046415
  • 779
  • 4
  • 23
  • 43
1 2 3 4
5