Click to See Complete Forum and Search --> : AutoPostback Problem on the Grid


vuyiswam
May 22nd, 2009, 02:54 AM
Good Afternoon All

For you to help me and understand my problem, i will have to explain everything in details.

I have a usercontrol with a textbox. This textbox changes the values so am trapping the values on textchange and that is cool and working. I have set the textbox property to "Autopostback="true" in the usercontrol.

I have a Ultrawebgrid(Infragistics gridview version) on my Asp.net host page and now when the value of the textbox that i have trapped on textchange event changes, i want to bind the grid. I have method that is doing that , taking the value on textchange and assigning it method and the method will bind the Grid based on the value. Now to be safe i have exposed the property of the textbox "Autopostback" from the usercontrol like this


public bool
TextBoxAutoPostBack

{


get
{


return
txtbxActvs.AutoPostBack;

}


set

{

txtbxActvs.AutoPostBack =

value
;

and on the host page i have made it true like this



<uc1:ActivityCtrl ID="ActivityCtrl1" runat="server" TextBoxAutoPostBack=true ActivityViewMode="Staff" KeepApart="false" OnLoad="ActivityCtrl1_Load" EnableViewState="true" />


And Here is the Photo to Explains what is happening

http://www.vbforums.com/attachment.php?attachmentid=71120&stc=1&d=1242993182

Thank you