Hi,
I have a grid (Infragistics UltraGrid but I don't think that matters) that
is bound to data source IEnumerable(Of Employee).
How do I add a row to the grid (i.e. to the underlying data source, I
suppose?
I';m used to my data sources being DataTable so easy. Not sure what to do
here.
Thanks,
Ron 1 3169
Ronald S. Cook wrote:
Hi,
I have a grid (Infragistics UltraGrid but I don't think that matters)
that is bound to data source IEnumerable(Of Employee).
How do I add a row to the grid (i.e. to the underlying data source, I
suppose?
I';m used to my data sources being DataTable so easy. Not sure what to
do here.
Thanks,
Ron
IEnumerable is a data *source*, not something that you can reliably add
data to. Of course, the object might actually be a List<Employeeor
similar, but unless you know the underlying type (and know that it won't
change at runtime), I would avoid attempting to add something.
Instead, add data to a new List<Employeean d bind to this new list,
which you can easily manipulate:
List<Employeeli st = new List<Employee>( enumerable);
grid.DataSource = list;
--
Lasse Vågsæther Karlsen
mailto:la***@vk arlsen.no http://presentationmode.blogspot.com/
PGP KeyID: 0xBCDEA2E3 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Kenneth |
last post by:
Hello all,
I'm trying to do some form validation on a form that collects its data into
a multidimensional array, and on submitting that re-writes the values as
hidden form elements (a form that keeps adding submitted values to a
multidimensional array).
However, since the hidden form fields have to be identically named to the
visible form fields, I can't make my JavaScript return an error if the field
is blank because there are...
|
by: Rhiner Dan |
last post by:
Here are the errors from my Dev-c compiler
////////////////////////////////////////////////////////////////////////////
Building Makefile: "C:\Dev-Cpp\Makefile.win"
Executing make...
make.exe -f "C:\Dev-Cpp\Makefile.win" all
g++.exe -c Tests.cpp -o Tests.o
-I"C:/Dev-Cpp/include/c++/3.3.1"
-I"C:/Dev-Cpp/include/c++/3.3.1/mingw32"
-I"C:/Dev-Cpp/include/c++/3.3.1/backward"
|
by: Ike |
last post by:
Does anyone here remember how to discern the upper bound of an array in asp,
pre-.NET ? Thanks, Ike
|
by: Tom |
last post by:
I need to make up a 'grid' of controls at run time. The controls (of which I
wrote) I will instantiate, then I need to arrange these in a row/column
layout. For example, let's say I instantiate 20 of the controls; then I want
to position them in a grid-like display (within a Windows Form) as 5 rows of
4 controls each. If the 'grid' doesn't fit within the frame of where it is
being generated then scroll bars should appear so that the user...
|
by: Manuel Canas |
last post by:
Hi There,
I have been batleing with this now that I'm at the end of my rop here.
What I'm doing here is this;
1 - retrieving some data from the database with a data reader (with a
search criteria)
2 - Filling a listbox with the data retrieved with the data reader
3 - draging items out of the listbox and dropping them into a text box
(simple names)
| |
by: Mark Gibson |
last post by:
Hi,
I've been playing about with array's, and found the concat operator
'||' quite
useful, apart from the fact that prepending an element places it in a
lower subscript.
Is there a way of either:
a) prepending an element, but shifting existing elements up a subscript,
so that the lower bound remains the same?
eg: 1 ||> ARRAY -- new operator ||> shift array and prepend
|
by: p.mc |
last post by:
Hi all,
I'm writing a database to hold images with captions, keywords etc.
I want to provide a search results page which will display a thumbnail
and title for each image. I've achieved this using a simple datagrid
with templates to arrange the data within each record but obviously
this displays the results in a single column. does anyone know of a
way i can force the results to display in a grid with multiple columns
of thumbnails?...
|
by: parez |
last post by:
Hi All,
is there anyway i can take collection(IEnumerable) of a particular
type as a paramter for a function.
Thanks in advance.
|
by: Claudia Fong |
last post by:
Hi,
How can I create a grid of 20 Columns by 30 Rows using asp.net?
Cheers!
Claudi
*** Sent via Developersdex http://www.developersdex.com ***
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |