none
Disabling a button in datagridview in vb.net

    Diskusi Umum

  • I have a datagridview in which i have a button column and a text column. I want that as soon as value in text cell is "xyz" the button in the row gets disabled , in vb.net.Can someone please tell me how to do it .

    23 Februari 2012 17:02

Semua Balasan

  • In your button definition you can add something like this:

    enabled='<%#Convert.ToString(Eval("YourDataFieldName"))<>"xyz"%>'


    07 Agustus 2012 10:34