Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > GridView commandfield button based on recordset value?

Reply
Thread Tools

GridView commandfield button based on recordset value?

 
 
11D.Universe
Guest
Posts: n/a
 
      06-09-2007
I've got a sql table containing a nullable int field named DataID.
The field is displayed as part of a GridView.

Is it possible to create a single CommandFieldButton column in the
GridView containing a button where the text displayed is a function of
the DataID field contents? For example, let's say if DataID is NULL,
the button in that row would read "Fill" and if the DataID is not
NULL, the button would read "Go"?

So, in the above example the grid would look like:

Button DataID
-------- ---------
Fill Null
Go 123
Fill Null
Go 55

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Gridview - Changing SelectText of Select CommandField pittster@hotmail.com ASP .Net 2 12-16-2009 02:52 PM
Gridview Commandfield imageurl AG ASP .Net 4 10-02-2006 12:14 PM
GridView and CommandField =?Utf-8?B?U2ViaG8=?= ASP .Net 0 09-25-2006 01:14 PM
CheckBoxField in GridView Tasks - Edit Column can it be a CommandField too? hazz ASP .Net 2 04-28-2006 01:39 PM
Can't set Theme skin Font-Size for GridView CommandField ButtonTyp =?Utf-8?B?QnVydA==?= ASP .Net 1 04-09-2006 10:39 PM



Advertisments