Datagrid Edit Command To cause verticle expansion
-
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!
-
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!
You might want to look for it in the ASP.NET control gallery[^]. IMO, it's more comlicated to customize the datagrid control in the way to want than the Repeater or DataList control. With the repeater or datalist cotnrol, you will be more flexible in editing the template of the row. Another way comes to mind is to implement a custom control whose functionality looks similar the
DetailsView
control in the ASP.NET 2.0. You basically use this custom control for editing the selected row.