title: How to use DataBinding event in DataList
body: <p>I am using DataList and want to bind data through databinding event.
  When i tried to bind data using ItemdatBound event than its give error and when i am using breakpoint than it was first go to the datBinding event and than source code and when its goes to the source code, its give error that "System.Data.DataRowView' does not contain a property with the name 'iParentPageId_PK"
  So What I do Now???</p>
  
  <p>Its My Code...</p>
  
  <pre><code>protected void dlRight_ItemDataBound(object sender, DataListItemEventArgs e)
  {
      if (e.Item.ItemType == ListItemType.Item)
      {
          Label lblId = (Label)e.Item.FindControl("lblId");
          SubPage objEntity = new SubPage()
          {
  
              ParentPageId = Convert.ToInt32(lblId.Text)
  
          };
          dlRight.DataSource = objSubBll.GetByParentPageId(objEntity);
          dlRight.DataBind();
      }
  }
  protected void dlRight_DataBinding(object sender, EventArgs e)
  {
  
  }
  </code></pre>