Link to home
Start Free TrialLog in
Avatar of jaysch
jayschFlag for United States of America

asked on

Determining if data returned to DataGrid

I have to turn a panel containing a datagrid plus other elements to panel1.visible = false if no data is returned to the datagrid. Is there a datagrid property I can use to do this: If datagrid.someproperty = 0 or false then panel1.visiable = false?
Avatar of raterus
raterus
Flag of United States of America image

This is what you are looking for,

  panel1.visible = (myDataGrid.Rows.Count <> 0)
Avatar of jaysch

ASKER

Raterus,

IntelliSense says " 'Rows' is not a member of  System.Web.Ui.WebControls.DataGrid"
ASKER CERTIFIED SOLUTION
Avatar of raterus
raterus
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial