Eric

Eric

  • NA
  • 1
  • 0

Dynamic data binding (c#)

Jan 16 2010 9:47 AM
How can I dynamically bind data from a data set to a control?

For example, I have a dataset...

Dataset ds = new Dataset();
ds.ReadXML("file.xml");

and I want to bind a textbox to a specific row and column of that dataset, kind of like this:

textbox.bind(ds.tables["person"].rows[0]["name"];

I know the above code is incorrect, but is there anything like it that would allow me to bind a control dynamically?

Answers (2)