I have a GridViewMultiComboBoxColumn (width: 175) within a GridView (width: 500). The GridViewMultiComboBoxColumn's DataSource is set to the result of a query selecting several columns (id, name, city, state). The GridViewMultiComboBoxColumn dislays multiple columns when the user clicks on the drop-down arrow. Since the GridViewMultiComboBoxColumn is made up of several columns (id, name, city, state), when the drop-down arrow is clicked on, and the listbox drops down, the column width of the GridViewMultiComboBoxColumn (175) is rather narrow and its hard to see the information contained in the columns.
Is it possible to change the width, currently 175, of the listbox that drops down for a GridViewMultiComboBoxColumn contained within a GridView, yet keep the width of the column (175) within the GridView without changing? If so, can you show me with code.
In other words, can I keep the control's width at 175, before and after the user clicks the drop-down arrow, but make it much wider, when they click on the drop-down arrow and the drop-down portion (or listbox aspect) of the GridViewMultiComboBoxColumn is accessible?
Private Sub RadTreeView1_Edited(ByVal sender As Object, ByVal e As Telerik.WinControls.UI.TreeNodeEditedEventArgs) Handles RadTreeView1.Edited
On Error GoTo ErrMsg
Dim DBConnection As New OleDbConnection("Provider=msdaora;Data Source=ubrmos01;User Id=tiadmin;Password=******")
Dim strsql As String
If e.Node.Level = 0 Then
DBConnection.Open()
strsql =
"UPDATE APPLICATION set APPLICATION = " & "'" & e.Node.Text & "'" & " where APPLICATION = " & "'" & Text_beforeedit & "'"
Dim Command As New OleDbCommand(strsql, DBConnection)
Command.ExecuteNonQuery()
End If
If e.Node.Level = 1 Then
DBConnection.Open()
strsql =
"UPDATE ENVIRONMENT set ENVIRONMENT = " & "'" & e.Node.Text & "'" & " where ENVIRONMENT = " & "'" & Text_beforeedit & "'"
Dim Command As New OleDbCommand(strsql, DBConnection)
Command.ExecuteNonQuery()
End If
Exit Sub
errmsg:
e.Node.Text = Text_beforeedit
MsgBox(Err.Description, MsgBoxStyle.Critical,
"Error Updating Database")
End Sub
For i As Integer = 0 To Me.RadGridView1.MasterGridViewInfo.TableHeaderRow.Cells.Count - 1
Me.RadGridView1.MasterGridViewInfo.TableHeaderRow.Cells(i).CellElement.BackColor = Color.Green
Me.RadGridView1.MasterGridViewInfo.TableHeaderRow.Cells(i).CellElement.BackColor2 = Color.Green
Me.RadGridView1.MasterGridViewInfo.TableHeaderRow.Cells(i).CellElement.BackColor3 = Color.Green
Me.RadGridView1.MasterGridViewInfo.TableHeaderRow.Cells(i).CellElement.BackColor4 = Color.Green
Me.RadGridView1.MasterGridViewInfo.TableHeaderRow.Cells(i).CellElement.ForeColor = Color.White
Next
How can I do the same for the rest of the rows, especially when I need to have different colors for the alternating rows??
Thank you in advance
George