GridView ButtonField.DataTextField Property

"Smotritsky, Alex" <[email protected]>
Newsgroups gmane.comp.windows.devel.dotnet.web
Message-ID <[email protected]>
There is an example here:

 

http://msdn2.microsoft.com/en-us/library/system.web.ui.webcontrols.butto
nfield.datatextfield(vs.80).aspx

 

which runs fine after you add the 2 missing }'s at the end of the server
script,

 

delete: datatextformatstring="[{0]"

 

and change the db server to a sql server you have in the connect string

 

The thing is:

 

They're getting data for the second column. I want the data in the
ButtonField column. I can't get at it so far, it comes back blank. If I
add an extra column with that data in it and make it a boundfield then I
can get it. If I make that bound field invisible then I can't get it. I
want the buttonfield data and I don't want to have a visible boundfield
redundantly displaying the same data. They say the buttonfield data is
in viewstate but I haven't been able to get at it thru viewstate yet
either. Any ideas?

 

 


===================================
This list is hosted by DevelopMentor®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.