Asp.net DetailsView - multiple columns?

If you want custom template & layout, you should use FormView that's behave and have same events exactly the detailsView Take a look at MSDN and Using the FormView's Templates.

If you want custom template & layout, you should use FormView, that's behave and have same events exactly the detailsView Take a look at MSDN and Using the FormView's Templates.

I ended up using DataList but will try FormView next time, thanks – Mike Jul 29 at 3:51.

I'm not sure why you think DetailsView supports only two columns. There's a comprehensive example on MSDN that has multiple columns (fields): DetailsView Class.

I think you're mixing up columns vs. rows - I know I can add X # of rows / fields, but I believe only 2 columns are supported. If I'm wrong please confirm the syntax, I don't see it in the link you provided – Mike Jul 29 at 3:53 I don't see anything in the link that says only two columns are supported; in fact, columns aren't even mentioned, just fields. If you have a row of data, it would seem rather limiting to only be able to display 2 columns/fields from that row.

Perhaps I'm misunderstanding what you mean by columns? – Tim Jul 29 at 5:50.

By default, DetailsView supports 2 columns. I'd like to add a third column. Is this possible using DetailsView?

Creating a table within each field doesn't do what I'd like as the third column won't be properly aligned. I know I can use other controls such as DataList, but having the typed asp:HyperLinkField / asp:CheckBoxField / etc of DetailsView and corresponding properties is extremely convenient. Does the best of both worlds (the flexibility of DataList and the built-in shorthand objects of DetailsView) exist?

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions