![]() |
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 |
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.