|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
DataGridView QuestionsHi all,
1. How can I control the Font of the control? 2. Is there a way to change the BackColor of individual rows? Thank you Samuel Me.dataGridView1.DefaultCellStyle.Font = New Font("Tahoma", 15)
Private Sub dataGrid_CellFormatting(ByVal sender As Object, ByVal e As DataGridViewCellFormattingEventArgs) Dim rowIndex As Integer = e.RowIndex Dim theRow As DataGridViewRow = dataGrid.Rows(rowIndex) Dim cellValue As Double = CType(theRow.Cells("Quantity").Value, Double) If cellValue > 50 Then theRow.DefaultCellStyle.BackColor = Color.Red Else End If End Sub Show quoteHide quote "Samuel Shulman" <samuel.shul***@ntlworld.com> wrote in message news:OZ973xCKHHA.2632@TK2MSFTNGP06.phx.gbl... > Hi all, > > 1. How can I control the Font of the control? > > 2. Is there a way to change the BackColor of individual rows? > > Thank you > Samuel >
Why does this not work? What am I doing wrong?
PrintDocument_PrintPage goes into endless loop until e.HasMorePages=False Print font not available after assigning PrinterName Goodbye microsoft.public.dotnet.languages.vb vbc : error BC30420: 'Sub Main' was not found in 'Product'. MySQL and MyOleDB Rename registry Key [folder/ branch] How to get the checked columns in DataGridView Webbrowser find a users default save location |
|||||||||||||||||||||||