Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to hide a record in the datagrid

Status
Not open for further replies.

vanisudha2000

Programmer
Joined
May 11, 2006
Messages
21
Location
US
Hello,
There is a datagrid in my page, where the colums are databound, one column is a datetime field, that is the time entered at that instance. for example it is 1/1/2006 12:00 PM
then after 60 min or 120 min or 180 min, that record should no longer should show up in the data grid.

How can I do this, I am using asp.net 2.0.
Can you please help me in doing this..
Thanks in advance
 
Hidden values can be stored via the DataKeys collection which gets bound when DataBind is called. Alternately, you can just set an existing column's Visible property to false.
 
Filter out the rows in the sql that pulls the data you are binding too.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top