TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
B Oprit
1.3k
429
4.1k
From Sqlite database to editor xamarin forms
Mar 22 2020 2:18 AM
Found a todo list and it is showing the saved items in a Listview , i change it so i only see ID nr 1 in the listview.
In OnAppearing it is filling the Listview , but what to change it to show " Name " to an Editor or Entry ?
But how do i show the Name of ID nr 1 in a Editor or Entry ?
public
class
TodoItem
{
[PrimaryKey, AutoIncrement]
public
int
ID {
get
;
set
; }
public
string
Name {
get
;
set
; }
public
string
Notes {
get
;
set
; }
public
bool
Done {
get
;
set
; }
}
public
Task GetItemsNotDoneAsync()
{
return
Database.QueryAsync<TodoItem>(
"SELECT * FROM [TodoItem] WHERE [ID] = 1"
); }
protected
override
async
void
OnAppearing()
{
base
.OnAppearing();
listView.ItemsSource = await App.Database.GetItemsNotDoneAsync();
}
Reply
Answers (
1
)
Why does Print from a WebView return a blank page?
Xamarin.android Convert from Binary To image