Users Pricing

forum

Home Forums number of columns using rowdatabound in asp.net – MindStick

number of columns using rowdatabound in asp.net

Anonymous User 2390 27 Nov 2014

I need to find count of total number of columns in a gridview inside the event rowdatabound .Is there any way for it. Below is my few code

   protected void gvEmployee_RowDataBound(object sender, GridViewRowEventArgs e)
        {
            LinkButton lnkView = new LinkButton();
            lnkView.ID = "lnkView";
            lnkView.Text = "View";
            lnkView.Click += ViewDetails;
            e.Row.Cells[3].Controls.Add(lnkView);
        }


1 Answers

Markdown for AI

A clean, structured version of this page for AI assistants and LLMs.

Open .md