
I'm trying to bind a single row to a Telerik RadGridView in WinForms. Since this list only ever contains one item, it seems inefficient to bind to a "List", even though I know that List only has one item. However, when I try to just bind to a single item in my list, nothing happens. Nothing shows up on my grid, but I don't get an error in the debugger.
This works. GetObjects is a Dal method that returns a List.
List<MyObject> myObjects = MyDal.GetObjects(myID);
this.myGridView.DataSource = myObjects;
The following code does NOT work. GetObject is a Dal method that only returns the first element from a List.
MyObject myObject = MyDal.GetObject(myID);
this.myGridView.DataSource = myObject;
I posted a similar question here .



I like to have the caret shown when the RichTextBox gets the focus, i.e., when tabbing into it. I use the following approach.
Private Sub RadRichTextBox_GotFocus(sender As Object, e As System.EventArgs) Handles RadRichTextBox.GotFocus
Me.RadRichTextBox.Document.Insert("", RadRichTextBox.CurrentEditingStyle)
End Sub

public RadForm1() { InitializeComponent(); ThemeResolutionService.LoadPackageFile(@"C:\Users\mamatjan\Desktop\xxxxxxxxxxxxxxxxxxxx\xx\MyTheme5.tssp"); ThemeResolutionService.ApplicationThemeName = "MyTheme5"; }
but when I'm run it. the button not use the style what I'm change, Until the mouse over the button, and button text margin is change.
why? and how I'm fixed it?(I just use font, and the font not change too)