Hi,
I am upgrading all controls of my C# winform app to Telerik. I couldn't find drawitem event in RadDropDownList.
Here is the code of combobox drawitem event:
private void cbMyCompanyList_DrawItem(object sender, DrawItemEventArgs e)
{
e.DrawBackground();
DataRowView drv = (DataRowView)(cbMyCompanyList.Items[e.Index]);
int CoID = (int)(drv["CompanyID"]);
string CoNum = (string)(drv["CompanyName"].ToString());
...........
using (SolidBrush sb = new SolidBrush(e.ForeColor))
{
e.Graphics.DrawString(..., e.Font, ..., ...);
}
}
How could I translate this to Telerik?
Thanks in advance!!
I am upgrading all controls of my C# winform app to Telerik. I couldn't find drawitem event in RadDropDownList.
Here is the code of combobox drawitem event:
private void cbMyCompanyList_DrawItem(object sender, DrawItemEventArgs e)
{
e.DrawBackground();
DataRowView drv = (DataRowView)(cbMyCompanyList.Items[e.Index]);
int CoID = (int)(drv["CompanyID"]);
string CoNum = (string)(drv["CompanyName"].ToString());
...........
using (SolidBrush sb = new SolidBrush(e.ForeColor))
{
e.Graphics.DrawString(..., e.Font, ..., ...);
}
}
How could I translate this to Telerik?
Thanks in advance!!