GridView commandfield button based on recordset value?

1

11D.Universe

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,240
Members
46,830
Latest member
HeleneMull

Latest Threads

Top