![]() |
|
|
|||||||
![]() |
ASP Net - CommandField ShowInsertButton |
|
|
Thread Tools | Search this Thread |
|
|
#1 |
|
I would like to be able to turn off (ie, set to false) the ShowInsertButton
option from my code for various users. I can't figure out how to do that. Can someone please educate me? I am using VB.net. BJ Stigall |
|
|
|
|
#2 |
|
Posts: n/a
|
Howdy,
It's quite simple: CommandField cf = (CommandField) gridView.Columns[commandColumnIndex]; cf.ShowInsertButton = false; // or true // bind the data gridView.DataSource = whateever; gridView.dataBind(); Please remember, once you bound the data and you change insert (or any column button) visibility, you have to rebind the data again. Hope this helps -- Milosz "BJ Stigall" wrote: > I would like to be able to turn off (ie, set to false) the ShowInsertButton > option from my code for various users. I can't figure out how to do that. > Can someone please educate me? I am using VB.net. > > > =?Utf-8?B?TWlsb3N6IFNrYWxlY2tpIFtNQ0FEXQ==?= |
|
![]() |
| Thread Tools | Search this Thread |
|
|