Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Datagrid Control > Cell handling when databinding in a GridView

Thread Tools

Cell handling when databinding in a GridView

Posts: n/a
I have a table with some url's (e.g. MyLinks.)
In the database, the table has a field "AllowDelete".

The grid is set up with two columns. One that displays the link as a
hyperlink, and one delete button.
While binding the gridview to the dataset, I want to check (for each row) if
it is allowed to delete the link. If it is not allowed, I would like to
disable or hide the delete button for that link (row).

How can I accomplish this?


Reply With Quote

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
ObjectDataSource and GridView - Handling Errors During DataBinding Mythran ASP .Net Web Controls 3 08-12-2009 01:33 AM
Databinding expressions are only supported on objects that have a DataBinding event jobs ASP .Net 0 09-25-2007 11:54 PM
Gridview encoding, or how to run commands before gridview's default databinding, or, how do I disable default databinding at all? Sergei Shelukhin ASP .Net 1 11-12-2006 01:43 PM
Problem handling DataGrid TemplateColumn Databinding Event Glenn Owens ASP .Net Datagrid Control 1 07-12-2004 02:07 PM
DataGrid Custom Column Error when DataBinding "does not contain a definition for 'DataBinding'" Earl Teigrob ASP .Net Datagrid Control 1 03-01-2004 04:52 AM