Most of the columns are template and I have textbox controls in the ItemTemplate . Normally the Id and name of the control resolves to something like the following.
ctl00$contentHolder$dgData$ctl02$dfCustomerSearchWord
All well and good as I expect.
If I add the following code to the RowCreated event.
{
TextBox dfDgCustomerSearchWord = (TextBox)e.Row.FindControl("dfCustomerSearchWord");
}
The control and name attributes resolve to this.dfCustomerSearchWord
What the hell is that all about, I havnt even tried to assign anything to the UniqueId, only accessed it.
Is this a bug? If not can anybody explain what esoteric reasoning might elicit this sort of behaviour in the GridView?
Sam HobbsPosted May 6, 2011, 2:09 AM
I can't really help you with your question. My guess based on past experiences is that there is something you are overlooking.
If you are able to provide a small sample (either code and/or procedures) that recreates the problem, then it is likely someone here will figure it out.
Nick HarrisonPosted May 6, 2011, 1:45 AM
Sam HobbsPosted May 5, 2011, 11:50 PM