Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

How to connect a table to datagrid

Posted on 2008-10-03
3
Medium Priority
?
363 Views
Last Modified: 2013-11-26
I am trying to develop a wince application,. I am using the datagrid in order to display data.
Yet,. I do not know how to create a binding between the datagrid and the dataset (which is a local database, with one table)

I think I must fill in the datamember variable,. yet I do not know how to create one,. Now all I see in the datamember combobox is "none"...

How can I bind the table to the grid?
0
Comment
Question by:amitbueno
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 20

Expert Comment

by:informaniac
ID: 22632336
datagrid1.datasource = ds;
0
 

Author Comment

by:amitbueno
ID: 22632358
I've attached already the database to the datasource in design time,.
Yet, I need to define the table,. how do I do that?
0
 

Accepted Solution

by:
amitbueno earned 0 total points
ID: 22632378
I need to define the datamember in the datasource but I do not know how to do that?
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Recently while returning home from work my wife (another .NET developer) was murmuring something. On further poking she said that she has been assigned a task where she has to serialize and deserialize objects and she is afraid of serialization. Wha…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…

722 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question