How can autogenerate controls in Formview ?
-
Dear Friends, I want to set Dataset in runtime to formview, that time formview should generate controls etc.... Please help me....
Haridas.R harisofttech@gmail.com harisofttech@hotmail.com (online) harizeenet@yahoo.co.in(online) "Achievement is not a destination, its a journey "
-
Dear Friends, I want to set Dataset in runtime to formview, that time formview should generate controls etc.... Please help me....
Haridas.R harisofttech@gmail.com harisofttech@hotmail.com (online) harizeenet@yahoo.co.in(online) "Achievement is not a destination, its a journey "
-
You simply assign the dataset to the
DataSource
property of the FormView control, if the dataset has multiple tables, you can determine which table is bound to the control in theDataMember
property, you then call theDataBind
method.i did like this way but i'm not getting.
Haridas.R harisofttech@gmail.com harisofttech@hotmail.com (online) harizeenet@yahoo.co.in(online) "Achievement is not a destination, its a journey "
-
i did like this way but i'm not getting.
Haridas.R harisofttech@gmail.com harisofttech@hotmail.com (online) harizeenet@yahoo.co.in(online) "Achievement is not a destination, its a journey "
-
What aren't you getting? The UI of the FormView control? How do you define the FormView control? Are you sure that the dataset has data in there?
I thought MSDN says that a formview control is a by-definition-data-control and not an auto-generate-columns control. If you haven't created Template fields for your controls, you might wanna do that first and leave the DataSource property until runtime where I suppose you can find the control and use it. If you want an auto-generated-columns control maybe you should try out the DetailsView
Live in fragments no longer. Only connect.