Questions tagged [rowdatabound]

Occurs when a data row is bound to data in a GridView control. Contained in the namespace System.Web.UI.WebControls

According to Microsoft Developer Network:

  • Detail of RowDataBound event

    The RowDataBound event is raised when a data row (represented by a GridViewRow object) is bound to data in the GridView control. This enables you to provide an event-handling method that performs a custom routine, such as modifying the values of the data bound to the row, whenever this event occurs.

  • Syntax (C#)

    public event GridViewRowEventHandler RowDataBound
    
  • See example here:

139 questions
0
votes
1 answer

ASP .NET RowDataBound attribute working for only one row (first one)

I want to blink selected rows in gridview. I'm using a jquery and binding it to ID attribute under RowDataBound method. But only one row (first one) is blinking, even if there are multiple rows set to blink. Here is the HTML body …
Sagar
  • 3
  • 3
0
votes
1 answer

c# GridView RowDataBound Error

I have a gridview that should be editable when a row is clicked. This gridview is clickable in a row so when I clicked it, the row will be displayed in other pages for editing reason. I got an error like this Specified argument was out of the…
Com.Man.Do.Girl
  • 177
  • 2
  • 4
  • 16
0
votes
1 answer

Cannot activate RowDataBound event for ASP.NET Gridview

I am working through an ASP.NET C# tutorial. I have a simple Gridview with the auto-created Edit & Delete Commandfields. So I've converted the Delete command field to a Templatefield and now I am trying to access the RowDataBound event of the…
John Joseph
  • 207
  • 2
  • 9
0
votes
1 answer

Can I apply operation to a range of cell indexes in GridView's RowDataBound Event?

I am setting GridView's layout features in the RowDataBound event based on the content of specific cells private void OnRowDataBound(Object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { if…
Barnabeck
  • 459
  • 1
  • 6
  • 26
0
votes
0 answers

I am binding gridview in RowCommand but it is not firing RowDataBound plesae

I am binding gridview in RowCommand but it is not firing RowDataBound plesae help. binding gridview in RowCommand protected void gdServerAccess_RowCommand(object sender, GridViewCommandEventArgs e) { …
BKM
  • 186
  • 2
  • 15
0
votes
1 answer

Why does Gridview lose BackColor on button click

I have a gridview that has certain rows set to a BackColor based on a value from one of the columns. ASPX
gwydion93
  • 1,681
  • 3
  • 28
  • 59
0
votes
0 answers

Gridview dropping milliseconds from database timestamp

I have a Gridview that displays record from a database, including a timestamp. In the RowDataBound event, I'm trying to check the timestamp to see if I need to disable a button but the milliseconds are dropped and so my comparisons aren't working…
TheIronCheek
  • 1,077
  • 2
  • 20
  • 50
0
votes
1 answer

Gridview RowDataBound dont work when I stay in the same page and click the search button

As title I have some code about add HyperLink and Highlight keywords in RowDataBound. It works when Page changes except stays in same page(click searchbtn). The condiction is HyperLink will disapper but highlight work normally. I try to write in…
Reach
  • 1
  • 1
0
votes
2 answers

Gridview rowdatabound access data items vb

I am trying to an ImageUrl to an image in a Template Field in GridView but keep getting the error: Object reference not set to an instance of an object. on this line: Dim imagePath As String = rowView("image_path") I've never done this before on a…
Jammer
  • 2,330
  • 11
  • 48
  • 77
0
votes
2 answers

I am trying to show background red for expiring items in my gridview but not able to using asp.net

I have a gridview that I am binding on my page_load event. In that, is a expiry date column where I want t show in red colour for those which are expiring in and under 30 days. Below is my GridView1_RowDataBound event code: protected void…
0
votes
1 answer

Header DDL in Gridview on ispostback

I have a header DDL in my gridview that for some reason does not keep my selected value but rather binds the gridview and the header back to "starting position" In my DDL header for Priority i have selected value '99' but after that my header gets…
Nils
  • 516
  • 3
  • 9
  • 33
0
votes
0 answers

window.opener.ParmArray == null on IE11 gridview RowDataBound asp.net vb.net

Mainpage Gridview i have gridview on edit item image button click popup needs to be opened and based on popup selection home page edited row needs to be updated from selection.its working fine on Chrome but not on IE here is the Gridview code…
kumarjcet
  • 419
  • 1
  • 5
  • 8
0
votes
0 answers

Gridview Custom Paging and Hide Row

I have a code where I need to Hide certain Rows based on a condition. The Gridview is binded through Custom Paging with a Stored Procedure. Problem right now is that, I have set to display 100 records per page in the gridview. Example in the first…
0
votes
2 answers

How to test if a row of gridview is empty asp.net

I have a empty grid view at the page load . In the RowDataBound event I add a dropdownlist to the last cell The problem is that the ddl is shown at the page load. I want to hide it if the cells of row are empty protected void grw_RowDataBound(object…
DM Ibtissam
  • 63
  • 1
  • 12
0
votes
1 answer

unable to find edit template control checkbox in row command

I tried to get the control of edit template which is checkbox in row command event but I am unable to get it, but I am getting label control which is in row index. I tried the above below code to get the control: protected void…
Flash
  • 13
  • 5