Click here to Skip to main content
15,905,967 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionCross Tab GridView Pin
APDevelop6-May-07 22:47
APDevelop6-May-07 22:47 
QuestionSend mail to microsoft exchange 2007- asp.net 2.0 Pin
vlmlnt6-May-07 22:07
vlmlnt6-May-07 22:07 
AnswerRe: Send mail to microsoft exchange 2007- asp.net 2.0 Pin
Rahul Babu6-May-07 22:29
Rahul Babu6-May-07 22:29 
QuestionPrint the contents of a DataGrid Pin
arun rajappan6-May-07 22:00
arun rajappan6-May-07 22:00 
AnswerRe: Print the contents of a DataGrid Pin
Spunky Coder6-May-07 22:29
Spunky Coder6-May-07 22:29 
GeneralRe: Print the contents of a DataGrid Pin
arun rajappan7-May-07 0:09
arun rajappan7-May-07 0:09 
Questionpleas guide me how we change the color of lable or link buttton in datagird temple programmatically Pin
Suhail Shahab6-May-07 21:55
Suhail Shahab6-May-07 21:55 
AnswerRe: pleas guide me how we change the color of lable or link buttton in datagird temple programmatically Pin
Chetan Ranpariya6-May-07 22:52
Chetan Ranpariya6-May-07 22:52 
Hi,

If you r using labels to display the status then you can check for the Text Property of them in the ItemDataBound event of the datagrid and change to color of lable there.

The following code may help you.
protected void dg_ItemDataBound(object sender, DatagridItemEventArgs e)
{
if(e.Item.ItemTyep == ListItemType.Item || e.Item.ItemType.AlternateItem)
{
Label lbl = (Label)(e.Item.FindControl("lblStatus");
if(lbl.Text == "Inkitchen")
lbl.ForeColor = Color.Red;
else if(lbl.Text == "Ready")
lbl.ForeColor = Color.Blue;
else if(lbl.Text == "Serve")
lbl.ForeColor = Color.Black;
}
}

Thanks and Regards,
Chetan Ranpariya
GeneralRe: pleas guide me how we change the color of lable or link buttton in datagird temple programmatically Pin
Suhail Shahab7-May-07 1:53
Suhail Shahab7-May-07 1:53 
GeneralRe: pleas guide me how we change the color of lable or link buttton in datagird temple programmatically Pin
Chetan Ranpariya7-May-07 2:17
Chetan Ranpariya7-May-07 2:17 
QuestionClear Browser's Cache after hitting Logout Button? Pin
md Nazeem6-May-07 21:39
md Nazeem6-May-07 21:39 
AnswerRe: Clear Browser's Cache after hitting Logout Button? Pin
Spunky Coder6-May-07 22:13
Spunky Coder6-May-07 22:13 
GeneralRe: Clear Browser's Cache after hitting Logout Button? Pin
md Nazeem6-May-07 23:09
md Nazeem6-May-07 23:09 
AnswerRe: Clear Browser's Cache after hitting Logout Button? Pin
Sherin Iranimose8-May-07 0:49
Sherin Iranimose8-May-07 0:49 
QuestionRedirect from another page Pin
Rahul Babu6-May-07 21:01
Rahul Babu6-May-07 21:01 
AnswerRe: Redirect from another page Pin
Sandeep Akhare6-May-07 21:17
Sandeep Akhare6-May-07 21:17 
QuestionReport Viewer vs 2005 Pin
oskardiazdeleon6-May-07 20:51
oskardiazdeleon6-May-07 20:51 
QuestionImport Excel Sheet datas into mysql Pin
vijay_836-May-07 20:24
vijay_836-May-07 20:24 
QuestionProcess ID from Task Manager Pin
SNI6-May-07 20:22
SNI6-May-07 20:22 
AnswerRe: Process ID from Task Manager Pin
Sandeep Akhare6-May-07 20:34
Sandeep Akhare6-May-07 20:34 
GeneralRe: Process ID from Task Manager Pin
SNI6-May-07 23:04
SNI6-May-07 23:04 
GeneralRe: Process ID from Task Manager Pin
Sandeep Akhare6-May-07 23:07
Sandeep Akhare6-May-07 23:07 
QuestionGridview Column width Pin
nikhil12346-May-07 19:54
nikhil12346-May-07 19:54 
AnswerRe: Gridview Column width Pin
rujuc#6-May-07 20:12
rujuc#6-May-07 20:12 
GeneralRe: Gridview Column width Pin
nikhil12346-May-07 20:20
nikhil12346-May-07 20:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.