Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Professional For advanced ASP.NET 1.x coders. Beginning-level questions will be redirected to other forums. NOT for "classic" ASP 3 or the newer ASP.NET 2.0 and 3.5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 27th, 2006, 09:06 AM
Friend of Wrox
 
Join Date: Aug 2004
Posts: 550
Thanks: 0
Thanked 1 Time in 1 Post
Default Datagrid items!!!!!

Hi

Just wondered how is it possible to make all the items in a grid visible in one code, not by any looping like below:

dgDataGrid.Items[i].Visible = false;

Is it possible?

Regards
Mike
__________________
Regards
Mike
 
Old October 28th, 2006, 01:01 AM
Authorized User
 
Join Date: Aug 2006
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
Default

u can try it in itemcreated event of datagrid
If e.Item.ItemType = ListItemType.Item Then e.Item.Visible = False






Similar Threads
Thread Thread Starter Forum Replies Last Post
Pupulating datagrid based on selected items swati_joshi ASP.NET 1.0 and 1.1 Basics 1 March 27th, 2006 04:22 PM
Adding items to datagrid/Uploading files PT C# 0 September 9th, 2005 08:21 AM
Adding items to datagrid at runtime hisham_abu General .NET 1 August 24th, 2005 02:11 AM
how to sort the items in the datagrid Ramakrishna.G General .NET 1 September 24th, 2004 02:29 AM
Datagrid Items Manipulation Ashkan C# 0 December 2nd, 2003 11:14 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.