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.