Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > .NET 1.0 and Visual Studio.NET > VS.NET 2002/2003
|
VS.NET 2002/2003 Discussions about the Visual Studio.NET programming environment, the 2002 (1.0) and 2003 (1.1). ** Please don't post code questions here ** For issues specific to a particular language in .NET, please see the other forum categories.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VS.NET 2002/2003 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 28th, 2006, 06:43 AM
Friend of Wrox
 
Join Date: Apr 2006
Posts: 160
Thanks: 0
Thanked 0 Times in 0 Posts
Default how to change values in asp:bound field

Hi,

This is the content of an aspx file: ('dat' is a date field in a table)
<asp:BoundField DataField="dat"
DataFormatString="{0:dd-MM-yy}"
HtmlEncode="false" />
<asp:CommandField ShowEditButton="True"/>

What i want to know is how to set the property 'DataFormatString' directly in VB.net and how to program 'ShowEditButton="True"' (in the code-behind page aspx.vb) instead of like here?

Thanks



 
Old May 29th, 2006, 06:45 AM
Friend of Wrox
 
Join Date: Apr 2006
Posts: 160
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I could already do this:
Dim obj As DataControlField
obj = GridView1.Columns.Item(0)
response.write(obj)

This gives "CommandField"
(Item(1) gives "BoundField")

But now, i'm stuck ...








Similar Threads
Thread Thread Starter Forum Replies Last Post
Updating Bound Controls Values automatically Borhani Excel VBA 0 January 20th, 2008 12:48 PM
get the values of form field values crmpicco Perl 2 March 16th, 2007 10:57 AM
ASP.NET 2 Data Bound CommandArgument rodmcleay General .NET 4 August 18th, 2006 05:35 AM
how to change values in asp:bound field hertendreef ASP.NET 2.0 Professional 3 May 31st, 2006 08:45 AM
Unable to change DB values using ASP dghughes42 Classic ASP Databases 2 January 31st, 2004 02:04 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.