jaysch
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?
ASKER
Raterus,
IntelliSense says " 'Rows' is not a member of System.Web.Ui.WebControls. DataGrid"
IntelliSense says " 'Rows' is not a member of System.Web.Ui.WebControls.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
panel1.visible = (myDataGrid.Rows.Count <> 0)