views:

17

answers:

0

Hi guys i'm with a doubt in asp.net webforms

I'm creating a new user control "MyGrid" and i want a pager more dinamic than have:

- 1stPage
- prevPage

- dropdown (with indices of the pages)
- Label    (telling the total of the pages)

- nextPage
- lastPage

The user control is dont and implementation too, now i have the next problem:

I want than the columns are dinamic, this is, in the page where i want to create the user control, i really want the liberty to do:

<uc:MyGrid id=".." runat=".." ...>

    [Have here the same properties than i have on asp.gridview control]
    <columns>



    </columns>

</uc:MyGrid> 

but is not possible

what«s the best way to "workarround" my problem?

I appreciate the help, thanks