hide rows when in editmode
Messages   Related Types
This message was discovered on ASPFriends.com 'aspngdatagridrepeaterdatalist' list.


Yannick Smits
I have an editable datagrid. What I want is this:
When a user clicks the edit button, the row should go in editmode and all
other rows should be hidden.

How should I do this? I thought of rebinding the grid with a filtered
dataview but I think this will make me loose editstatus. Any ideas?

thanks,
Yannick Smits

Reply to this message...
 
    
James Avery
Rebinding will not change the edititemindex, so that would be an option.
The other option would be to loop through each item and set the
visibility. You can set the visibility using something like this:
dgBilling.Items[1].Visible

-----Original Message-----
From: Yannick Smits [mailto:Click here to reveal e-mail address]
Sent: Friday, August 02, 2002 8:52 AM
To: aspngDataGridRepeaterDatalist
Subject: [aspngdatagridrepeaterdatalist] hide rows when in editmode

I have an editable datagrid. What I want is this:
When a user clicks the edit button, the row should go in editmode and
all other rows should be hidden.

How should I do this? I thought of rebinding the grid with a filtered
dataview but I think this will make me loose editstatus. Any ideas?

thanks,
Yannick Smits

| [aspngdatagridrepeaterdatalist] member Click here to reveal e-mail address = YOUR ID
| http://www.aspfriends.com/aspfriends/aspngdatagridrepeaterdatalist.asp

| = JOIN/QUIT

Reply to this message...
 
    
Alex Lowe
Yannick,

Are you looking for something like this -
(http://www.learnasp.com/freebook/learn/pubedit.aspx)?

Alex - AspFriends.com Moderation Team
Microsoft MVP - ASP.NET

***********************************************************
Translate C# code to VB.NET code at
http://aspalliance.com/aldotnet/examples/translate.aspx
***********************************************************

[Original message clipped]

| = JOIN/QUIT

Reply to this message...
 
 




Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
 
 Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us - Terms of Use - Privacy Policy - www.dotnet247.com