0

How can I databind a string array (string[]) to a dropdownlist?

Does it implement iEnumerable?

1
  • Yes a string[] implements IEnumerable[<string>] - but I don't know if that means you can data-bind in ASP.NET; have you tried it? Commented May 26, 2009 at 21:46

1 Answer 1

6

Yes, and yes. All arrays implement IEnumerable<T>, and as such are valid data-sources for data-binding.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.