Grid view

  • Thread starter sonali_aurangabadkar
  • Start date
C

Cowboy \(Gregory A. Beamer\)

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!
*************************************************
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,578
Members
45,052
Latest member
LucyCarper

Latest Threads

Top