Questions tagged [itemdatabound]
74 questions
1
vote
2 answers
itemdatabound event of a nested listview
I have a nested listview which I databind on the parent 'ItemDataBound' event, but how do i access/register the nested listview's itemdatabound event?
Thanks!
Edits
My parent listview itemdatabound now looks like so,
Protected Sub…

Dooie
- 1,649
- 7
- 30
- 47
1
vote
0 answers
How do I sort a DataGrid column based on a field in an embedded Repeater?
I have a DataGrid which has one column that derives its contents from a Repeater that is populated during the DataGrid's ItemDataBound event. I need to be able to sort the DataGrid rows based on the value in the Repeater. Here is a shortened sample…

KurtWM
- 191
- 1
- 6
1
vote
4 answers
Get row count in ItemDataBound
I have a datasource in Page_Load binded to a repeater.
I am writing the results to the page in ItemDataBound but when it's the last row of data I require it to do something slightly different.
How do I access the row count of a data source in…

Jammer
- 2,330
- 11
- 48
- 77
1
vote
1 answer
how to check the checkbox inside the repeater at binding time accordingto value?
I have a repeater and inside it i have a checkbox. Now i want to check it according to columns value(0/1). I have tried it through the itemDataBound event of the repeater. what its doing if the rows has value 1 then its checked all checkbox and if…

Ram Singh
- 6,664
- 35
- 100
- 166
1
vote
3 answers
How to only display certain images in a folder into a Repeater in ASP.NET
I have a Repeater that takes all my images in a folder and display it. But what code changes must I make to only allow lets say Image1.jpg and Image2.jpg to be displayed in my repeater. I don"t want the repeater to display ALL the images in my…

Etienne
- 7,141
- 42
- 108
- 160
1
vote
1 answer
RadioButtonList 1 Row Coloured
Please Help.
I am using ASP/ VB.net and I have a radio button populated from the database in the code behind like this.
rdoTheTest.DataSource = Test.Test_Get()
rdoTheTest.DataBind()
I now get the radio list on the screen and I want to colour 1 row,…

Kiel
- 203
- 2
- 12
1
vote
1 answer
Delete a row from Telerik Radgrid. How I get Index of that selected Row?
Here is the code I am using for delete functionality.
In RadgridItemdatabound funtion, I have to include this...
foreach (GridColumn col in RadGrid1.MasterTableView.Columns)
{
…

Faisal Yasin
- 17
- 6
1
vote
1 answer
LINQ2SQL: how to delete entity by retrieving it from datagridview?
I have a datagridview and attached list of Employees to it, somthing like this:
IQueryable data = (from em in db.Employees
where em.StationID == stationID
select…

Kai
- 2,023
- 7
- 28
- 49
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
How to access the current ItemType Item value from OnItemDataBound method of ListView?
In aspx page:
...
...
Code behind:
protected void…

Saleh Feek
- 2,048
- 8
- 34
- 56
1
vote
1 answer
DataGridview, How to get some value from second level of an item and show it in a new column?
I am using c# asp.net and building a windows application. I have created a datagridview and set the datasource. Everything is working fine.
But I would like to add a new column in my DataGridView and set some value. These value is not available on…

Ola
- 1,188
- 5
- 16
- 35
1
vote
1 answer
Set Class Using Eval in Item Data Bound
I have a Repeater item in which their is a tr elements like this.
I want to set css class according to item index as alternating item.
My Design Code is Like This
c#
css
asp.net
itemdatabound

Saurabh Sharma
- 139
- 2
- 12
1
vote
2 answers
Put every 5 Repeater items between a div
I'd like to get my items who are in my repeater get between a div
and after 5 elements in a new div.
So what i currently got is this:
View:
Jamie
1
vote
1 answer
Programmatically select/use ItemTemplate or AlternatingItemTemplate
I have a ASP.NET repeater, and i want to make use of it's ItemTemplate and AlternatingItemTemplate slightly different as how they are supposed to be used. Instead of having ASP.NET to switch between the 2 for every odd/even item, i want to choose…

Tys
- 3,592
- 9
- 49
- 71
1
vote
0 answers
Repeater Itemdatabound with many usercontrols too slow
Hi I have created a web application in which I am facing a performance issue as I am binding 15 usercontrols inside a repeater on itemdatabound and i am using usercontrol's prerender event to bind data can you please suggest me any alternative to…

Nagendra Kumar
- 21
- 4