GUI of Datagrid

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Javier Pérez (jperez_at_nethost.com.es)
Date: 02/25/05


Date: Fri, 25 Feb 2005 13:46:20 +0100


Hello All,

Aplogise my english, im a spanish speaker. If you want, you can response me
in spainsh.

Ive got a dataGrid where one their columns is a bit type. I would like where
one of this columns was true, the background color change to red color.

I tried to do this, but no way...

------------------------------------------------------------------------------------------------------

Create the event
    this.dtgSortAndPaging.ItemDataBound += new
    DataGridItemEventHandler(dtgSortAndPaging_ItemDataBound);

Create the function:
private void dtgSortAndPaging_ItemDataBound(object sender,
System.Web.UI.WebControls.DataGridItemEventArgs e)

{
How I can work with de background propertie of de datagrid and change his
color??
}

Thanks!


Quantcast