Aug 12, 2011, 10:26 AM
SetSource is used when PropertyGrid is rendered on the client side already (during DirectEvent)
protected void Page_Init(object sender, EventArgs e)
{
Tuple<decimal, decimal, decimal, decimal, decimal, decimal> financeInfo = GetFinance();
string contract = string.Format("<a href='{0}'>{1}</a>", "bla", "blabla");
Tuple<decimal, decimal, decimal, decimal, decimal, decimal> financeInfo = GetFinance();
PropertyGrid1.AddRange(
new PropertyGridParameterCollection
{
new PropertyGridParameter("contract", contract),
new PropertyGridParameter("title2", financeInfo.Item2.ToString()),
new PropertyGridParameter("title3", financeInfo.Item3.ToString()),
new PropertyGridParameter("title4", financeInfo.Item4.ToString()),
new PropertyGridParameter("title5", financeInfo.Item5.ToString()),
new PropertyGridParameter("title6", financeInfo.Item6.ToString())
}
);
}
The constract are shown as a text but not as a link.