Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Grid view

Reply
Thread Tools

Grid view

 
 
sonali_aurangabadkar@yahoo.com
Guest
Posts: n/a
 
      06-28-2006
i want to edit whole grid on singel button click

 
Reply With Quote
 
 
 
 
Cowboy \(Gregory A. Beamer\)
Guest
Posts: n/a
 
      06-28-2006
Possible, but think it through. If you provide too many rows, this could be
a nightmare.

How to do this? I can think of a couple of directions:

1. Create all columns a templated columns with an editable version. If the
button is pushed, refill the grid, but switch to the editable view by using
the grid events. At this point in time you are circumventing the natural
order of things. You also have to capture the input back when the editing is
done, which means pulling from a wide variety of controls.

2. Create your own grid control that allows this easily. This is the most
reusable solution and you should be able to inherit fromt he current control
and alter to your specs.

3. Code the painting of the form completely (i.e. dump the grid view and
display data in a table from code behind). You then have complete control. I
would consider creating a control for the individual editable rows, however,
as it will be easier to reassemble the data if a row is contained in a
single control (iterate through controls in the "table" container and then
iterate through each of its controls), as the control is akin to a data row
while the individual controls are akin to columns.

Good luck!

--
Gregory A. Beamer

*************************************************
Think Outside the Box!
*************************************************
<(E-Mail Removed)> wrote in message
news:(E-Mail Removed) oups.com...
>i want to edit whole grid on singel button click
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to? Create grid layout in grid view wahtnamas ASP .Net 0 05-01-2009 06:10 AM
Edit Mode of Grid View and Detail View Control ? Luqman ASP .Net 2 02-01-2006 08:14 AM
How to transfer a value from an Invisible Grid to an visible Grid =?Utf-8?B?QXNzYW5LaGFuIElzbWFpbA==?= ASP .Net 2 10-17-2005 03:56 AM
Grid within a Grid ItemDataBound event problem Girish ASP .Net 4 07-19-2005 01:17 AM
How to make a week view and day view calendar just like month view calendar in .NET ? Parthiv Joshi ASP .Net Web Controls 1 07-06-2004 03:15 PM



Advertisments