Hi, The Following code in Inline code, The Following code from code behind in gridview_rowdatabound(), If e.Row.RowType = DataControlRowType.DataRow Then txt1 = CType(e.Row.FindControl("txttmp1"), TextBox) txt2 = CType(e.Row.FindControl("txttmp2"), TextBox) txt3 = CType(e.Row.FindControl("txttmp3"), TextBox) Dim s1 = txt1.Text Dim s2 = txt2.Text Dim s3 = txt3.Text If s1 = "" Then CType(e.Row.FindControl("txttmp1"), TextBox).Enabled = False ElseIf s2 = "" Then CType(e.Row.FindControl("txttmp2"), TextBox).Enabled = False ElseIf s3 = "" Then CType(e.Row.FindControl("txttmp3"), TextBox).Enabled = False End If End If i hope this will works fine....
kannak