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
 Hide Datagrid row cells on Editcommand

Author  Topic 

bubberz
Constraint Violating Yak Guru

289 Posts

Posted - 2005-11-15 : 11:55:47
I'm using the first data cell (index 2 since I use the Edit and Delete columns) template column to place all data edits in the first data column in order to have the datagrid expand vertically.

What I'd like to do is hide the other cells in the row, as I only need this one column (index 2) during the EditCommand.

Can I do this?

Thanks!

bubberz
Constraint Violating Yak Guru

289 Posts

Posted - 2005-11-16 : 09:29:41
It's been decided to leave the fields visible for the user to see what the "original data" is.

What I'm doing now, is using the first data column's EditItem Template to allow the user to edit 6 fields. I'm using an HTML table control to hold the text boxes and dropdownlists so it's structured, but now...on the UpdateCommand, I can't get the cast correct and/or find the control to get the associated data for the Update statement.

Any suggestions are welcome!
Go to Top of Page
   

- Advertisement -