Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8579067
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T20:32:01+00:00 2026-06-11T20:32:01+00:00

I am looking for rowdata bound event that we have in asp.net gridview. What

  • 0

I am looking for rowdata bound event that we have in asp.net gridview. What I am trying to achieve is this.

e.row.rowtype == datacontrolrowtype.datarow

on data bound event of webdata grid , but it is not working so how can I achieve this.
Suggestion on how get the type of row and its event would be helpful.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T20:32:02+00:00Added an answer on June 11, 2026 at 8:32 pm

    Ok, not 100% sure what you mean by achieving ‘this’ but.. WebDataGrid offers 2 versions of such events so whatever you are attempting would probably have to do with these.
    As far as I get your line of code you are interested in data rows only and the following row-related events are fired only for data rows as far as I’m aware(definitely not for headers or Summary rows from my experience):

    • Server side: The InitializeRow event is raised when the grid binds to the records in the data source. You can find that in the general control Properties or add it at top level in the markup with <ig:WebDataGrid oninitializerow="WebDataGrid1_InitializeRow"...
      Within the handler you have access to both the grid and the row and this event is fired for each data row, always:

          protected void WebDataGrid1_InitializeRow(object sender, Infragistics.Web.UI.GridControls.RowEventArgs e)
      {
          // Use:
          //e.Row.DataItem
          //e.Row.DataKey
          //e.Row.Index
      }
      
    • Client Side Row Rendered /-ing event, that is fired only when client side binding/rendering is enabled. Event fired after / before a row is rendered to the DOM, set up by adding <ClientEvents RowRendered="test" /> where test is the name of the handler function in JavaScript:

      function test(webDataGrid, evntArgs) {
           //The data object with all attributes
           evntArgs.get_dataItem();
      
           //Reference to the actual TR element
           evntArgs.get_rowElement();
      
           //Returns index of the row inside of its container collection.
           evntArgs.get_index();
      
           //Returns data key of the row. It is always an array of objects even in a case of a single data key field.
           evntArgs.get_dataKey();
       }
      

    I think you should be able to do what you want to do with those.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Looking at the Ehcahce implementation of net.sf.cache.JS107, I am trying to achieve the following
In my Asp.net App, i have a GridView and i generate the data of
I am using a dropdownlist in footer row of gridview ( ASP.Net ) and
Looking to do a bit of refactoring... Using NHibernate I have this query currently
Looking for best advice on how to do this: I have an insert like
Evening all. I have the following code that I need looking into - basically
I have a simple GridView ; something like this for a regular Item or
I have been looking all over the Internet for an answer to this question
I have a dictionary of data that looks for example like this: dict =
I am updating an existing ASP .NET site. This site has a custom grid

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.