Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 ASP.NET
 Datagrid Edit Command To cause verticle expansion

Author  Topic 

bubberz
Constraint Violating Yak Guru

289 Posts

Posted - 2005-10-31 : 16:57:53
I have a datagrid that has about 10 fields in it. The font size is a bit small, and when the user edits a row, it's a bit tough with the sizing....especially with the dropdownlist have field concatenation upon editing.

We'd like to implement a datagrid that upon the Edit command, it expands vertically. So, instead of one row with all the fields from left to right, I might be able to have the columsn stack upon each other almost like five rows with two columns per row, or two rows with 5 columns. This way I can make the font size much larger and easier for the users to read.

I know there are custom controls out there I've found in the past, but of course....can't find them with google searches. I don't mind trying to create my own custom control either...this is almost always the best way to learn. I just don't know how to change the grid row so all the fields change "Y" location. A little point in the right direction is appreciated.

Thanks!

wiltech
Yak Posting Veteran

51 Posts

Posted - 2005-11-01 : 06:44:06
Look into using Template Columns.
http://samples.gotdotnet.com/quickstart/aspplus/samples/webforms/ctrlref/webctrl/datagrid/doc_datagrid.aspx

"With a TemplateColumn, you completely control which controls are rendered in the column, and which data fields are bound to the controls."

Tony W
Go to Top of Page
   

- Advertisement -