To find out the control, which is inside the gridview.

Jitendrasoft09
Posted by Jitendrasoft09 under ASP.NET category on | Points: 40 | Views : 893
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class _Default : System.Web.UI.Page
{
private void ClearFields()
{
txtFName.Text = string.Empty;
txtLName.Text = string.Empty;
txtAddress.Text = string.Empty;
}

protected void Page_Load(object sender, EventArgs e)
{

}
protected void Button1_Click(object sender, EventArgs e)
{
DropDownList qualification = (DropDownList)GridView1.Cells[0].FindControl("ddlQualification");


}
}

Comments or Responses

Login to post response