How to dynamically add gridview in asp.net c#

前端 未结 3 1672
无人及你
无人及你 2021-01-28 06:01

Hello guys i have to dynamically add multiple gridview in asp.net. There are no of gridview are genereated on the basis of selection.

3条回答
  •  清歌不尽
    2021-01-28 06:17

    I agree completely with @RMadd. SO is not a code-writing service, you should first try and give us something to look at and show you where you are going wrong.

    But, if you have no idea where to start, one way is to add all of the empty gridviews with no visibility and set them as visible according to the selection.

    That's about as vague of an answer as I can give for your vague question.

    Here are some other places to look I found with Google-foo:

    http://www.dotnetfox.com/articles/create-dynamic-gridview-or-programmatically-create-Asp-Net-gridview-with-dynamic-boundfield-1083.aspx

    How to dynamically add gridviews side by side using asp.net c#

    http://codedisplay.com/runtime-dynamically-creating-gridview-and-bind-data-in-bound-columns-using-asp-net-c-vb-net/

提交回复
热议问题