Hi This is How i Make my Project to work:
foreach (DataGridItem dr in dgModuleSearch.Items)
{
CheckBox cb1 = (CheckBox)dr.FindControl("cb1");
TextBox tb1 = (TextBox)dr.FindControl("tb1");
if (cb1.Checked)
{
tb1.Visible = cb1.Checked;
cb1.Attributes.Add("onclick", "javascript:if(this.checked){document.getElementById('" + tb1.ClientID + "').focus()}");
}
}
I need the code for vise versa
(i.e)Can Some one say how to set the enable of the textbox in the datagrid to false when check box in the datagrid is is unchecked.
thanks in Advance.