Author: levalencia | Posted on: 9/15/2008 10:07:16 AM | Views : 276

Hello, I have the following code, I put this into App_code.
 
public static void PrepareGridViewForExport(Control gv)
    {

        LinkButton lb = new LinkButton();
        Literal l = new Literal();
        string name = String.Empty;
        for (int i = 0; i < gv.Controls.Count; i++)        {

            if (gv.Controls[i].GetType() == typeof(LinkButton))
            {
                l.Text = (gv.Controls[i] as LinkButton).Text;
                gv.Controls.Remo ...

Go to the complete details ...