I almost gave up and just convert my commandfield to a templatefield but I know it can be done so I keep on searching for it. (Although I'm still not sure what the asker meant about the declarative answer.) If this was based on roles you could use the multiview panel but not sure if you could do the same against a property of the record. In your rowdatabound event you can hide or show the button in it.
You can hide a Command Field or Button Field based on the position (index) in the Grid View.
Para este caso en particular se agregara solo la opción de selección.
Mediante las flechas laterales se puede posicionar el comando.
Possibly, you should use the Get Row Values method instead. Hi Michael, I have attached a project containing a small portion of my code for your review. By doing things this way it also eliminated the need for me to handle the ASPx Grid View. Thanks again for the prompt and accurate support that I have come to love from Dev Express!
If this doesn't help, please provide us with a small sample project, reproducing this issue. I have ensured that the value and text properties are set as they should be. I've created a sample project with this solution. Disclaimer: The information provided on Dev and its affiliated web properties is provided "as is" without warranty of any kind.
I have also tried changing the Value Type property to no avail. The grid's datasource contains only text fields, while you try bind the combobox to an incorrect field value and value type. In your project the Grid View Data Combo Box Column. To overcome this issue, bind the grid to data with a Category ID and get a combo value - Int32. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose.
Si se define del tipo Link y se quiere cambiar el texto, se usaría la propiedad “Select Text”.
Now you can ask questions directly to me on my new site ASPForums.