Hello,
I want to create a grid where one record is shown on 2 lines. I have done this by using the htmlviewdefenition.
When I enlarge the font size and then set the autosizerows property to true, the header isn't displayed properly. (Attached you will find a screenshot of the grid)
My code:
Html:
I am using gridview version 2011.1.11.419.
Can anyone help me with this problem?
Regards,
Steve
I want to create a grid where one record is shown on 2 lines. I have done this by using the htmlviewdefenition.
When I enlarge the font size and then set the autosizerows property to true, the header isn't displayed properly. (Attached you will find a screenshot of the grid)
My code:
using
System;
using
System.Collections.Generic;
using
System.ComponentModel;
using
System.Data;
using
System.Drawing;
using
System.Text;
using
System.Windows.Forms;
using
Telerik.WinControls.UI;
namespace
TestTelerikGrid3
{
public
partial
class
Form1 : Form
{
public
Form1()
{
InitializeComponent();
}
private
void
Form1_Load(
object
sender, EventArgs e)
{
HtmlViewDefinition view =
new
HtmlViewDefinition();
view.RowTemplate.ReadXml(
"GridLayout.htm"
);
radGridView1.ViewDefinition = view;
radGridView1.Font =
new
Font(
"Segoe UI"
, 15.75F,FontStyle.Regular);
radGridView1.AutoSizeRows =
true
;
}
}
}
Html:
<
table
>
<
tr
>
<
td
colspan
=
"2"
>Column1</
td
>
</
tr
>
<
tr
>
<
td
>Column2</
td
>
<
td
>Column3</
td
>
</
tr
>
</
table
>
I am using gridview version 2011.1.11.419.
Can anyone help me with this problem?
Regards,
Steve