Browse Dialog Results grid


Author
Message
Ross L. Rooker, Sr.
Ross L. Rooker, Sr.
StrataFrame User (245 reputation)StrataFrame User (245 reputation)StrataFrame User (245 reputation)StrataFrame User (245 reputation)StrataFrame User (245 reputation)StrataFrame User (245 reputation)StrataFrame User (245 reputation)StrataFrame User (245 reputation)StrataFrame User (245 reputation)
Group: Forum Members
Posts: 153, Visits: 462
When the rowpopulating event occurs I need to get a reference to enumerate through the cells on each row and look at the cell values. If I find the word "INACTIVE" in any of the cells, I want to turn that line RED. If I find a cell value of "1/1/1800' I want to display an empty value in that cell. Can you give me a sample on how to do this? I have done it with the regular .NET grid and the Infragistics grid.
Replies
Ross L. Rooker, Sr.
Ross L. Rooker, Sr.
StrataFrame User (245 reputation)StrataFrame User (245 reputation)StrataFrame User (245 reputation)StrataFrame User (245 reputation)StrataFrame User (245 reputation)StrataFrame User (245 reputation)StrataFrame User (245 reputation)StrataFrame User (245 reputation)StrataFrame User (245 reputation)
Group: Forum Members
Posts: 153, Visits: 462
I found out what was wrong. Thanks.
Edhy Rijo
E
StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)
Group: StrataFrame Users
Posts: 2.4K, Visits: 23K
Ross L. Rooker, Sr. (2/18/2011)
I found out what was wrong. Thanks.

You are welcome Ross.

Could you please post what was wrong and the fix you used?

Edhy Rijo

Ross L. Rooker, Sr.
Ross L. Rooker, Sr.
StrataFrame User (245 reputation)StrataFrame User (245 reputation)StrataFrame User (245 reputation)StrataFrame User (245 reputation)StrataFrame User (245 reputation)StrataFrame User (245 reputation)StrataFrame User (245 reputation)StrataFrame User (245 reputation)StrataFrame User (245 reputation)
Group: Forum Members
Posts: 153, Visits: 462
The code below is what I used to color certain rows based on the value of a row column and the lines commented out would take care of any values that were 1/1/1800 is they were being displayed.

private void browseDialog1_RowPopulating(MicroFour.StrataFrame.UI.Windows.Forms.RowPopulatingEventArgs e)

{

TrustedVALET_BO.
tbl_BillTerms_1 loBO = (TrustedVALET_BO.tbl_BillTerms_1)e.BusinessObject;

if (loBO.BILLTERMS_RSTATUS == "INACTIVE")

{

e.RowForeColor = System.Drawing.
Color.Red;

}

//if (loBO.BILLTERMS_ENTDT.ToString() == "1/1/1800 12:00:00 AM")

//{

// e.Values[0].DisplayValue = string.Empty;

//}

//else

//{

// e.Values[0].DisplayValue = loBO.BILLTERMS_ENTDT.ToString("dd-MMM-yyyy");

//}

}

}


Edhy Rijo
E
StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)
Group: StrataFrame Users
Posts: 2.4K, Visits: 23K
Thanks Ross,  glad you figured out.

Edhy Rijo

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
Ross L. Rooker, Sr. - 14 Years Ago
Edhy Rijo - 14 Years Ago
Ross L. Rooker, Sr. - 14 Years Ago
Edhy Rijo - 14 Years Ago
                 I found out what was wrong. Thanks.
Ross L. Rooker, Sr. - 14 Years Ago
Edhy Rijo - 14 Years Ago
                         The code below is what I used to color certain rows based on the value...
Ross L. Rooker, Sr. - 14 Years Ago
                             Thanks Ross, glad you figured out.
Edhy Rijo - 14 Years Ago

Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search