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

bound column

1 Answer 71 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Sigma
Top achievements
Rank 1
Sigma asked on 07 Aug 2012, 12:04 PM
Hi all,

I am showing date in a cell using BoundColumn. I would like to display a text for some date(conditional).

thanks

1 Answer, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 07 Aug 2012, 12:12 PM
Hi,

Please try the following code snippet.

C#:
protected void Rdagrid1_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e)
{
    if (e.Item is GridDataItem)
    {
        GridDataItem ditem = (GridDataItem)e.Item;
        if (ditem["UniqueName"].Text == "your condition")
        {
            ditem["UniqueName"].Text = "Your text";
        }
    }
}

Thanks,
Shinu.
Tags
Grid
Asked by
Sigma
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or