Datagrid not visible?

Results 1 to 2 of 2

Thread: Datagrid not visible?

  1. #1
    Join Date
    Dec 1969

    Default Datagrid not visible?

    Hi,<BR><BR>I have binded the below DataReader to the DataGrid. But still, when I look at the webform, I&#039;m not able to view the DataGrid at all?<BR>Why is this happening?<BR>thanks<BR><BR><BR>OleDbCommand objcmd3 = new OleDbCommand(sql3,cn);<BR>objcmd3.CommandText = sql3;<BR>OleDbDataReader rdr = objcmd3.ExecuteReader();<BR>if (rdr.Read())<BR>{<BR> <BR> DataGrid3.Visible = true;<BR> DataGrid3.DataSource = rdr;<BR> DataGrid3.DataBind();<BR> DataGrid3.Dispose();<BR>}<BR>else<BR>{<BR> <BR> DataGrid3.Visible = true;<BR>}

  2. #2
    Join Date
    Dec 1969

    Default i'd guess that

    your SQL isn&#039;t returning any results

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts