title: In DataList ItemdataBound event, how to access by column name instead of by ItemArray index
body: <p>In the following code, strUsername is always returning as an empty string "" (and so are other columns).</p>
  
  <p>However if I use ItemArray and access it by passing the column index, it works fine. How to access by column name instead of index?</p>
  
  <pre><code> protected void dlst_ItemDataBound(object sender, DataListItemEventArgs e)
          {
              if (e.Item.ItemType == ListItemType.Item ||
               e.Item.ItemType == ListItemType.AlternatingItem)
              {
                  if (e.Item.DataItem != null)
                  {
                      string strUsername = DataBinder.Eval(e.Item.DataItem, "Username").ToString(); -----&gt; this returns as an empty string
  
  
                  }
              }
  </code></pre>