开发者

How to enable / disable any record in gridview?

开发者 https://www.devze.com 2023-01-26 05:14 出处:网络
How to enable / disable any record in gridview ? using mssql I want in my gridview the following will appear ..

How to enable / disable any record in gridview ?

using mssql

I want in my gridview the following will appear ..

Name          Course         Year          Status  
Sam           MCA            2010          Enable

when i click on enable then record will be displayed in gridview and the enable button will convert into text disable... and when i click on disable then the record will be disable in gridview and enabl开发者_运维知识库e button will appear ...

I want to use vb.net, asp.net (vb) to do that ...


Use a Checkbox in a TemplateField or a CheckBoxField in your GridView to display the Enabled-State. Here is a Tutorial: http://msdn.microsoft.com/en-us/library/bb288032.aspx

0

精彩评论

暂无评论...
验证码 换一张
取 消