Re: Row font color in Datagrid




"Connull" <Connull@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:988B0325-2B4B-4204-BEA5-247B3F812082@xxxxxxxxxxxxxxxx
> Is there a way to change the font color in a specific row in a datagrid. I
> know who to identify the specific row.

Assuming your are talking about the System.Windows.Forms.DataGrid class,
investigate the SelectionBackColor property.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwindowsformsdatagridclassselectionbackcolortopic.asp


--
Peter [MVP Visual Developer]
Jack of all trades, master of none.


.



Relevant Pages

  • Re: how to switch datagrid font based on each recordset value
    ... > I have a datagrid that has a column called "Match". ... > the value is "NO" then I need the font color to be red, ... If the datagrid is a windows forms type, there is an article on MSDN (plus a ... Prev by Date: ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: DataGrid Frage
    ... Peter Haus wrote: ... > Ich habe einen Datagrid an einen Dataset gebunden. ... > Wenn bei der Eingabe neuer Daten der Master Grid velassen wird rufe ... > um Wete für den Detail bereit zu halten. ...
    (microsoft.public.de.german.entwickler.dotnet.datenbank)
  • Re: Mater-Detail
    ... Something like "a contact page" with lots of textboxes and a dropdownlist. ... In the page you use a DataGrid to display the main ... Then bind the master table's records with the DataGrid control, ... > #Building DataBound Templated Custom ASP.NET Server Controls ...
    (microsoft.public.dotnet.framework.aspnet.webcontrols)
  • Re: Urgent Datagrid/DataSet/BindingContext problem - (something new!)
    ... >> I have been trying to fix this bug for months. ... >> There's this DataGrid, see? ... >> parent record, and it is the first child row for that record, when I tab ... >> for a Master record. ...
    (microsoft.public.dotnet.framework.windowsforms.controls)
  • Datagrid is not updating in one-to-many relation
    ... All seems to work fine, data is shown in both grids, and the child datagrid ... only shows the rows that are dependent from the first master row. ... Lektion is the master table, ...
    (microsoft.public.dotnet.framework.adonet)