Gridview not showing Empty data Template when Empty
-
Hi all, I have been struggling to get this done but it has drilled a nail in my head. I have a grid as foll: and the code i m using is as follows Protected Sub Button_Search_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button_Search.Click Dim cmd As New SqlCommand() cmd.Connection = con cmd.CommandType = CommandType.StoredProcedure cmd.CommandText = "Blah Blah" Dim loc As String = Nothing If DDL_Location.SelectedValue <> "0" Then loc = DDL_Location.SelectedValue End If frmdate = DateTime.ParseExact(TextBox_Date_From.Text, "dd/MM/yyyy", System.Globalization.CultureInfo.Cu
-
Hi all, I have been struggling to get this done but it has drilled a nail in my head. I have a grid as foll: and the code i m using is as follows Protected Sub Button_Search_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button_Search.Click Dim cmd As New SqlCommand() cmd.Connection = con cmd.CommandType = CommandType.StoredProcedure cmd.CommandText = "Blah Blah" Dim loc As String = Nothing If DDL_Location.SelectedValue <> "0" Then loc = DDL_Location.SelectedValue End If frmdate = DateTime.ParseExact(TextBox_Date_From.Text, "dd/MM/yyyy", System.Globalization.CultureInfo.Cu
www.Developerof.NET wrote:
can anyone get this code working!!!!!
What is the problem? Did you try to debug it? what is the error ?
cheers, Abhijit My Recent Article : Beginner's Guide to ASP.NET Application Folder
-
www.Developerof.NET wrote:
can anyone get this code working!!!!!
What is the problem? Did you try to debug it? what is the error ?
cheers, Abhijit My Recent Article : Beginner's Guide to ASP.NET Application Folder
The prob is that the Empty data template is not showing. Nothing is displayed. Its all blank. When i viewed the html source the grid renders as follows
ie no text between the TR`s no TD`s When you fail to plan, you are planning to fail.