Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Datagrid Control > GUI of Datagrid

Reply
Thread Tools

GUI of Datagrid

 
 
Javier Pérez
Guest
Posts: n/a
 
      02-25-2005

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_ItemData Bound);


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!


 
Reply With Quote
 
 
 
 
Riki
Guest
Posts: n/a
 
      02-25-2005
Javier Pérez wrote:
> 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_ItemData Bound);
>
>
> 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!


e.Item.BackColor=System.Drawing.Color.Red

--

Riki


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Baseline GUI Architecture (was: Baseline GUI Prototype?) Stefan Ram Java 3 11-20-2011 02:18 AM
PyGTK GUI update without signals from GUI Andrew Lapidas Python 0 04-12-2008 11:07 PM
GUI - GUI value passing paul.foreman Java 5 10-25-2004 08:06 AM
GUI and non-GUI data Hal Fulton Ruby 1 08-05-2004 08:42 PM
[PY GUI] interest function in python GUI(wxpython,pyqt) program.wxpython,pyqt ulysses Python 4 10-22-2003 03:28 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57