473,659 Members | 2,671 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

addiing values to a column in Datagrid

HI

i have a datagrid with 5 columns.

for the first 4 columns i do add the values using a arraylist.

now i do need to add the values to the 5th column using another arraylist
..,.

how can i do this ??which is the best easy method to do this?

Thanks
Senthil

Nov 19 '05 #1
1 986
I think the best way is to create a DataSource that is uptodate.. which
means fix a DataTable of Array that has all the values for the datagrid
first and then Bind.. OR.. in ItemCreated event of Datagrid add the values
to the 5th column

/Lars
"SenthilVel " <se************ ******@misyshea lthcare.com> skrev i meddelandet
news:%2******** ********@tk2msf tngp13.phx.gbl. ..
HI

i have a datagrid with 5 columns.

for the first 4 columns i do add the values using a arraylist.

now i do need to add the values to the 5th column using another arraylist
.,.

how can i do this ??which is the best easy method to do this?

Thanks
Senthil

Nov 19 '05 #2

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

Similar topics

1
4285
by: Derek | last post by:
Another DGrid question... I can not access the values of a cell in a datagrid unless I make them visible. I do not want these fields displayed. I only want to use the values to run a stored procedure off of. I access them right now using the item.cell().control method. Here's the code:
2
2008
by: Balamurukan | last post by:
How to retrive property values from our own property window
6
1981
by: spmm_pls | last post by:
Hi, Could some1 please tell me what the best way is to adjust the value of a column in my databound datagrid (in ASP.NET) For example my database returns the values 1,2 and 3 in the column Priority. But 1,2 and 3 actually represent "Low", "Medium" and "High". So instead of a column filled with 1,2,3's I want a column filled with Low,Medium,High's. How do I do that??
2
2029
by: Colin McGuigan | last post by:
This is a translation of an ASP page to ASP.Net. First, the background: The goal is to have a grid of different settings for the application -- think something along the lines of the Property Page for a control. You have two columns -- the first column is a simple caption, and the second column can be one of a number of controls (textbox, checkbox, dropdownlist, etc) for each row. So row #1 might have a textbox in the second column,...
1
3995
by: nemo | last post by:
I'm creating a datasource and populating a datagrid at runtime. The code is as follows: dt = New DataTable dt.Columns.Add(New DataColumn("Item", GetType(String))) dt.Columns.Add(New DataColumn("Value", GetType(String))) For i = 0 To j - 1 dr = dt.NewRow()
4
10605
by: Fred Nelson | last post by:
Hi: I have a VB.NET web app that contains a datagrid on a web form that is loaded as follows: DataGrid1.DataSource = lookup.searchnames(getinformation) DataGrid1.DataBind The grid displays data for the user and contains one column that is an html link.
7
1951
by: Aaron Smith | last post by:
How do I set field default values at runtime? Say I want a check box that is bound to a boolean field to default to false for a certain set of criteria, and then true for others? I also need to do this with other fields, not just boolean.... Thanks, Aaron -- --- Aaron Smith
3
2279
by: dbuchanan | last post by:
Hello, (Windows forms - SQL Server) I fill my datagrid with a stored procedure that includes relationships to lookup tables so that users can see the values of the combobox selections rather than the key value that are stored in the table. It works well if the comboboxes are selected when the row is created.
0
1662
by: Rani | last post by:
Hi, I'm new to .net and started a project recently. I'm trying to populate a datagrid's first column with default values. The datagrid is of 3 rows and 3 columns. I need to populate the first column with 3 diffrernt values in each row. The second column is a bound column and the third column is a template column. I was able to populate the bound column with out any problem. Help in this regard is greately appreciated. thanks
0
8427
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, 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...
0
8850
Oralloy
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...
0
8746
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8523
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,...
0
7355
agi2029
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...
0
5649
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();...
0
4334
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2749
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1737
bsmnconsultancy
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...

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.