No me sale

25/01/2005 - 22:12 por Susana | Informe spam
No me sale por favor
ayudame

Me.SqlSelectCommand1.CommandText = "SELECT * FROM CLIENTE
where NOMBRE LIKE '%" & Me.txtnombre.Text & "%' "
Me.SqlSelectCommand1.Connection =
Me.SqlConnection1
Me.SqlDataAdapter1.SelectCommand =
Me.SqlSelectCommand1
Me.SqlDataAdapter1.Fill(Me.DataSet11)
If DataSet11 Is Nothing Then
DataGrid1.Visible = False
Else
DataGrid1.Visible = True
Me.DataGrid1.DataSource = Me.DataSet11
Me.DataGrid1.DataBind()
 

Leer las respuestas

#1 Misael Monterroca
25/01/2005 - 22:29 | Informe spam
Prueba lo siguiente


If DataSet11.Tables.Count = 0 Then
DataGrid1.Visible = False
Else
DataGrid1.Visible = True
Me.DataGrid1.DataSource = Me.DataSet11
Me.DataGrid1.DataBind()



Saludos!
Misael Monterroca
http://www.neo-mx.com/blog

Preguntas similares