can't access gridcell text

3 posts, 0 answers
  1. Gilberto
    Gilberto avatar
    65 posts
    Member since:
    Sep 2006

    Posted 14 Oct 2008 Link to this post

     Every time i get   in cellTxt, could anyone help me plz.

     

     

     

    protected void RadGridContasPagar_ItemCreated(object sender, GridItemEventArgs e)

     

    {

     

        if (e.Item is GridDataItem)

     

        {

     

            GridDataItem dataitem = (GridDataItem)e.Item;

     

     

            String cellTxt = dataitem["Vencimento"].Text; 
        }
    }

     

  2. Plamen Peshev
    Admin
    Plamen Peshev avatar
    886 posts

    Posted 14 Oct 2008 Link to this post

    Hi,



    Please review the following help article, that demonstrates how to access cells and rows:

    Regards,
    Plamen
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 14 Oct 2008 Link to this post

    Hi,

    Can you try using implementing the same code you have provided here in the ItemDataBound event of your grid and see if it helps.
    cs:
    protected void RadGrid1_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e) 
        { 
            if (e.Item is GridDataItem) 
            { 
                GridDataItem dataItem = (GridDataItem)e.Item; 
                string strtxt = dataItem["Vencimento"].Text; 
                 
            } 

    Thanks
    Princy.
Back to Top