Hi,
I'm trying to disable to fullrowselect in a ListView with detail as its viewtype and thereby only have a one or more cells selected.
Please see the code below:
Is what i'm trying to do possible or does it conflict with the whole idea of listview?
Regards,
Thomas
I'm trying to disable to fullrowselect in a ListView with detail as its viewtype and thereby only have a one or more cells selected.
Please see the code below:
public partial class ListViewFullRowSelect : Form
{
public ListViewFullRowSelect()
{
InitializeComponent();
radListView1.ViewType = Telerik.WinControls.UI.ListViewType.DetailsView;
radListView1.FullRowSelect = false;
List<
Test
> testList = new List<
Test
>();
Random r = new Random();
for (int i = 0; i < 500; i+=3)
{
int nextvalue = r.Next(10)+1;
testList.Add(new Test(i, i + " times " + nextvalue+ " = " + i * nextvalue));
}
radListView1.DataSource = testList;
}
}
public class Test
{
public int id { get; set; }
public string result { get; set; }
public Test(int id, string name)
{
this.id = id;
this.result = name;
}
}
Is what i'm trying to do possible or does it conflict with the whole idea of listview?
Regards,
Thomas