protected void Grid1_RowExported(object sender, GridRowExportEventArgs e)
 {
     if (e.SourceRow.RowType == GridRowType.DataRow)
     {
         e.Row.Cells[5].Text = bool.Parse(e.SourceRow.Cells[5].Text.ToLower()) ? "yes" : "no";
     }
 }    
 protected void Grid1_RowExported(object sender, GridRowExportEventArgs e)
 {
     if (e.SourceRow.RowType == GridRowType.DataRow)
     {
         e.Row.Cells[5].Text = e.SourceRow.Cells[5].Text.ToLower() == "true" ? "yes" : "no";
     }
 }
    protected void Grid1_RowExported(object sender, GridRowExportEventArgs e)
    {
        if (e.SourceRow.RowType == GridRowType.DataRow)
        {
            bool exportCurrentRow = true;

            if (Grid1.SelectedRecords != null)
            {
                Hashtable currentRecord = e.SourceRow.ToHashtable();

                foreach (Hashtable selectedRecord in Grid1.SelectedRecords)
                {
                    exportCurrentRow = true;

                    foreach (DictionaryEntry entry in selectedRecord)
                    {
                        if (currentRecord[entry.Key].ToString() != selectedRecord[entry.Key].ToString())
                        {
                            exportCurrentRow = false;
                            break;
                        }
                    }

                    if (exportCurrentRow)
                    {
                        break;
                    }
                }
            }
            else
            {
                exportCurrentRow = false;
            }

            if (!exportCurrentRow)
            {
                e.Row.Parent.Controls.Remove(e.Row);
            }
        }
    }
    protected void Grid1_RowExported(object sender, GridRowExportEventArgs e)
    {
        if (e.SourceRow.RowType == GridRowType.DataRow)
        {
            bool exportCurrentRow = true;

            if (Grid1.SelectedRecords != null)
            {
                Hashtable currentRecord = e.SourceRow.ToHashtable();

                foreach (Hashtable selectedRecord in Grid1.SelectedRecords)
                {
                    exportCurrentRow = true;

                    foreach (DictionaryEntry entry in selectedRecord)
                    {
                        if (currentRecord[entry.Key].ToString() != selectedRecord[entry.Key].ToString())
                        {
                            exportCurrentRow = false;
                            break;
                        }
                    }

                    if (exportCurrentRow)
                    {
                        break;
                    }
                }
            }
            else
            {
                exportCurrentRow = false;
            }

            if (!exportCurrentRow)
            {
                e.Row.Parent.Controls.Remove(e.Row);
            }
        }
    }