jasonli
July 31st, 2006, 11:26 AM
I wanna change GridView.EmptyDataText at runtime, but it doesn't work.
How to do that?
How to do that?
|
Click to See Complete Forum and Search --> : about GridView.EmptyDataText jasonli July 31st, 2006, 11:26 AM I wanna change GridView.EmptyDataText at runtime, but it doesn't work. How to do that? mcmcom July 31st, 2006, 04:27 PM what did you try? did you also know this: If both the EmptyDataText and EmptyDataTemplate properties are set, the EmptyDataTemplate property takes precedence. are you using EmptyDataTemplate, or did you instantiate it as that will preside over the other property. hth, mcm jasonli August 1st, 2006, 11:26 AM I set EmptyDataText when design time. If no data in gridview, the EmptyDataText shows up. What I want is to change the string of EmptyDataText at runtime. No luck though. mcmcom August 2nd, 2006, 12:11 PM well EmptyDataText has both get and set properties so you should be able to set it at runtime. what code did you try to set it to something different? mcm codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |