This is a migrated thread and some comments may be shown as answers.

can't access gridcell text

2 Answers 34 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Gilberto
Top achievements
Rank 1
Gilberto asked on 14 Oct 2008, 07:32 AM
 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 Answers, 1 is accepted

Sort by
0
Missing User
answered on 14 Oct 2008, 10:16 AM
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.
0
Princy
Top achievements
Rank 2
answered on 14 Oct 2008, 12:04 PM
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.
Tags
Grid
Asked by
Gilberto
Top achievements
Rank 1
Answers by
Missing User
Princy
Top achievements
Rank 2
Share this question
or