Hello,
For your information, my program is written in Visual C# .NET.
At present, I have a DataGrid bound to some data from a database. I'm
using inline editing to edit the records. For all intents and purposes
this works fine. However it isn't too practical for what I'm doing.
The table contains a list of news articles. As you can imagine, editing
the body of a news item inline isn't too nice to look at.
I'm proposing, that when the user clicks the "Edit" link at the end of
the row, instead of just that row having text boxes, another row
appears below the origional row containing the news body.
For example, the following is what the table would look like when
nothing is selected.
+------------+--------------+--------------+
| Author | Title | Edit |
+------------+--------------+--------------+
| Joe Bloggs | My Post | Edit |
| Bob Marley | Another Post | Edit |
+------------+--------------+--------------+
However, when I click edit at the end of the first row, I would like
the table to look like this.
+----------------+----------------+----------------+
| Author | Title | Edit |
+----------------+----------------+----------------+
| [ Joe Bloggs ] | [ My Post ] | Update Cancel |
| |
| [ Here is where I shall write the body of my ] |
| [ news post. This will allow me to write on ] |
| [ more than one line. ] |
| |
+----------------+----------------+----------------+
| Bob Marley | Another Post | Edit |
+----------------+----------------+----------------+
Baring in mind, I wrote this using monospace characters, it may look a
bit odd, but hopefully it should show what I'm trying to explain.
Thanks,
Nick