i am using EmptyDataTemplate for entering new data in grid while there is no existing data,but i am not able to find my controls in the EmptyDateTemplate
protected void gvNavigationDtls_RowCommand(object sender, GridViewCommandEventArgs e)
{
if (e.CommandName.Equals("EInsert"))
{
GridViewRow emptyrow = gvNavigationDtls.Controls[0].Controls[0] as GridViewRow;
if (((TextBox)emptyrow.FindControl("txtCode")).Text == "")
in page load also i checked by writing following code
gvNavigationDtls.DataBind();
Control c = gvNavigationDtls.Controls[0].FindControl("txtCode");
if (c != null)
{
}
but c is null,that means i am not able to find control to use it, Please help,Thanks in Advance