Hi,
I am working on a RadGrid that has worked perfectly up till now, I use the event below to translate the true/false returned from the database into yes/no, I have other situtions where the translation maybe more complex e.g. a specific string to another string like 'yes' = 'this item has been delivered!'
where my problem is, is that I have introduced grid paging, now the first page is formatted correctly and all subsequent pages dont have the translations in them.
void grdDelivery_ItemDataBound(object sender, GridItemEventArgs e) {
if (e.Item is GridDataItem) {
GridDataItem databounditem = e.Item as GridDataItem;
if (bool.Parse(databounditem["deliveryclosed"].Text) == false) {
databounditem[
"deliveryclosed"].Text = "No";
}
else {
databounditem[
"deliveryclosed"].Text = "Yes";
}
}
}
any help would be great.