473,394 Members | 1,829 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Binding to DataGrid

Does anyone have one example binding a DataGrid that implements the
interface IListSource or IList ?

I need to implement binding to a DataGrid but by means of not using a
DataTable because the data is created at runtime.

Thanks in Advance.

Nov 17 '05 #1
3 2073
will you bind it to web grid or win grid? if web grid, any datasource
implemented IEnumarable is enough. but in case of win grid, even IEnumarable
is enough, you will miss lots of functionalty like sorting, adding new rows
etc. i suggest, even data is created at runtime, you can create a table, add
columns, and fill with rows.
Nov 17 '05 #2
It is a win grid.

I think I will follow your advice because I need to update the source table
anyway.

Thank you.
"The Crow" <q> escribió en el mensaje
news:e7**************@TK2MSFTNGP12.phx.gbl...
will you bind it to web grid or win grid? if web grid, any datasource
implemented IEnumarable is enough. but in case of win grid, even
IEnumarable is enough, you will miss lots of functionalty like sorting,
adding new rows etc. i suggest, even data is created at runtime, you can
create a table, add columns, and fill with rows.

Nov 17 '05 #3
Luis,

I have once implemented a fully custom data source object by using
ILIstSource etc. It is a really tedious task, and unless you have really
good reason not to use a DataTable, I'd suggest you followed the The Crow's
advice.

--
Sincerely,
Dmytro Lapshyn [Visual Developer - Visual C# MVP]
"Luis Arvayo" <am**********@prodigy.net.mx> wrote in message
news:%2***************@tk2msftngp13.phx.gbl...
It is a win grid.

I think I will follow your advice because I need to update the source
table anyway.

Thank you.
"The Crow" <q> escribió en el mensaje
news:e7**************@TK2MSFTNGP12.phx.gbl...
will you bind it to web grid or win grid? if web grid, any datasource
implemented IEnumarable is enough. but in case of win grid, even
IEnumarable is enough, you will miss lots of functionalty like sorting,
adding new rows etc. i suggest, even data is created at runtime, you can
create a table, add columns, and fill with rows.



Nov 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Ann Morris | last post by:
INTRODUCTION One of the most powerful aspects of .NET and Windows Forms is data binding. Data binding is the process of associating user interface (UI) elements with a data source to generate a...
1
by: Mike Dole | last post by:
Why is it that when I want to use an attribute like for instance: .WriteAttributeString("WaiterId", "14") and later on (in another application) want to bind the xml to a datagrid with readxml I'm...
0
by: Shane O. Pinnell | last post by:
I am sure this has come up before, but I haven't been able to find an answer as of yet. That said, any help is definitely appreciated! I have a datagrid populated from a dataset. I have a...
3
by: Jim Bancroft | last post by:
Hi everyone, I'm binding an ArrayList to a DataGrid for the first time (I'm used to binding DataSets and DataTables) and I was wondering if I could somehow "name" the ArrayList, so that I can...
8
by: Richard L Rosenheim | last post by:
I have a dataset containing a parent table related to a child table. The child table contains an ID field (which is configured as autonumber in the datatable), the ID of the parent, plus some...
5
by: Brad Shook | last post by:
I am trying to bind one column of a datagrid to a seperate textbox and the rest of the fields to a datagrid. the comments are too large to fit in a datagrid so I created a textbox below the...
2
by: yuanh23 | last post by:
Hi, I have 3 talbes "customers","orders","details". i wanna to use 3 datagrids to show those tables. and when the selected row in parent talbe changes, the selected row in child table changes...
6
by: p.mc | last post by:
Hi all, I'm having major problems with a userControl which contains a datagrid. My problem concerns data binding. The Page_Load() procedure calls the DataBind procedure to bind the datagrid...
3
by: no | last post by:
Hi all, I have a dataset that contain 2 tables and a relationship between them (master detail). I bind this dataset to a form that include some textboxes that bind to the parent record, and a...
1
by: Stephen Barrett | last post by:
I have an application that was originally built with ASP.Net 1.1. We finally got permission to migrate to 2.0. Due to time constraints we migrated the web projects to 2.0 web application...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.