Thanks, I think what I am attempting to do has a complicated solution.
I found this that I think will get me there:
http://www.experts-exchange.com/Programming/Languages/.NET/Visual_Basic.NET/Q_23004072.html>Here is a link I found
http://www.experts-exchange.com/Programming/Languages/.NET/Visual_Basic.NET/Q_23243328.html>
>>I can access the visible property of the cell but it is readonly.
>>
>>Con_campDataGridView.Item(e.ColumnIndex, e.RowIndex).Visible = False
>>
>>
>>>>I have a Datagrid where I would like to have a button show if a field has a value and not show if no value is present.
>>>>
>>>>I currently change the button's caption with the code below.
>>>>
>>>>
>>>>
>>>>
>>>> Private Sub Con_campDataGridView_CellFormatting(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellFormattingEventArgs) Handles Con_campDataGridView.CellFormatting
>>>>
>>>> Dim i As Integer
>>>> i = Me.Con_campDataGridView.Columns("file_loc").Index
>>>>
>>>> If e.ColumnIndex = i And e.RowIndex > -1 Then
>>>> e.FormattingApplied = True
>>>> If IsDBNull(e.Value) Or e.Value Is Nothing Then
>>>> e.Value = ""
>>>> ' I would like to hide the button if not file is available
>>>>
>>>> Else
>>>> e.Value = "Show Image"
>>>> End If
>>>> End If
>>>>
>>>> End Sub
>>>>
>>>
>>>Can you access the button through Controls array? If yes, then just set its visible property to false.