Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP .Net (http://www.velocityreviews.com/forums/f29-asp-net.html)
-   -   Datagrid footer bound dropdownlist (http://www.velocityreviews.com/forums/t80552-datagrid-footer-bound-dropdownlist.html)

Mohamed Zaki 06-15-2004 01:49 PM

Datagrid footer bound dropdownlist
 
Dear All,
I've a datagrid in its footer i added a drop down list and some text
boxes and a link button to add new records in the database, however i
populate the dropdown list in the ItemDataBind, when i click over the
linkbutton i got the dropdown list populated again and the selected item is
lost.

Please help.

Regards,
Mohamed




Martin Marinov 06-15-2004 02:01 PM

Re: Datagrid footer bound dropdownlist
 
I'd suggest you to poulate the dropdownlist if e.item.itemtype =
listitemtype.footer AND !BtnVarClicked
BtnVarClicked is variable that is stored in the session object and is false
when you enter in the itemdatabound when is ispostback and when you submit
the page BUT not from the button in the footer
in the footer onclick item initialize this variable to true

Hope this helps
Regards
Martin

"Mohamed Zaki" <m_o_z_a_k_i@link.net> wrote in message
news:Ok1BBAuUEHA.4048@TK2MSFTNGP12.phx.gbl...
> Dear All,
> I've a datagrid in its footer i added a drop down list and some text
> boxes and a link button to add new records in the database, however i
> populate the dropdown list in the ItemDataBind, when i click over the
> linkbutton i got the dropdown list populated again and the selected item

is
> lost.
>
> Please help.
>
> Regards,
> Mohamed
>
>
>





All times are GMT. The time now is 12:23 PM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57