Last post Aug 10, 2018 09:39 AM by TW88
Aug 09, 2018 02:21 AM|TW88|LINK
The Gridview is filtered by the following parameters in a textbox OUT of the GV. It is OK
<asp:ControlParameter Name="EventName" ControlID="TxtFilter" PropertyName="Text" />
Now the textbox is moved IN the header of the GV.
i try to change the ControlID of FilterParamters, it seems not OK
ControlID='<%# GV_Enrollments.HeaderRow.FindControl("TxtFilter").ClientID %>'
Any ideas. Thanks a lot.
Aug 10, 2018 09:20 AM|Brando ZWZ|LINK
In my opinion, this is the right.
If you put the search textbox in side the girdview, it will return not found error, since the gridview is generated according to the datasource.
It couldn't find the textbox since it doesn't generated when databind.
Here is a workaround, I suggest you could put the textbox ouside the girdview.
Then you could generate the table's header by using html and css without directly putting the textbox in the girdview.
Aug 10, 2018 09:39 AM|TW88|LINK
Thanks a lot for your advice.
I made a logic mistake. I never saw such design.
at last, I put it out of the GV