473,386 Members | 1,610 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,386 software developers and data experts.

user columns in a datagrid

I have a datagrid that is linked to my database and gives me 3 columns worth
of data. What i want to do now is load in another 2 columns of data that i
create myself in my code that does not come from the database. Is this
possible and if so how?
Nov 21 '05 #1
2 964
Can you show how you are loading the datasource for the datagrid now? It
would help to tailor the response since there are many ways to skin this
cat.

If you are binding a dataset fill from a dataadapter just add columns to the
dataset.

DataSet1.Tables(0).Columns.Add("MyTable")

Hope this help. Post some of your code if you need more help.
Chris

"RBirney" <RB*****@discussions.microsoft.com> wrote in message
news:95**********************************@microsof t.com...
I have a datagrid that is linked to my database and gives me 3 columns
worth
of data. What i want to do now is load in another 2 columns of data that
i
create myself in my code that does not come from the database. Is this
possible and if so how?

Nov 21 '05 #2
I am binding a dataset from a dataadapter.
That worked for adding the column. How do i add the data into that column
in each row?

"Chris, Master of All Things Insignifican" wrote:
Can you show how you are loading the datasource for the datagrid now? It
would help to tailor the response since there are many ways to skin this
cat.

If you are binding a dataset fill from a dataadapter just add columns to the
dataset.

DataSet1.Tables(0).Columns.Add("MyTable")

Hope this help. Post some of your code if you need more help.
Chris

"RBirney" <RB*****@discussions.microsoft.com> wrote in message
news:95**********************************@microsof t.com...
I have a datagrid that is linked to my database and gives me 3 columns
worth
of data. What i want to do now is load in another 2 columns of data that
i
create myself in my code that does not come from the database. Is this
possible and if so how?


Nov 21 '05 #3

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

Similar topics

0
by: vilius lukosius | last post by:
Hi, i did alot of research about how to replace error message box in datagrid but did not found any way around. problem is: when for example in a new row datatable that is bound to dataset...
1
by: Raed Sawalha | last post by:
i have aspx page with user control containing a datagrid , the datagrid has TempleteColumn with checkbox in header and item ( doing multiselect task) I wondering how Can get the checkboxes status...
0
by: Paul | last post by:
Hi I have a datagrid with two different hyperlink columns. The columns open up a new window as the target is set to _blank for both. The windows are different sizes (one large, one small) and I...
5
by: Jay Villa | last post by:
Is it possible to update only few columns in datagrid during OnUpdateCommand event ? If so, could you help me .... -thanks Jay
1
by: andrewcw | last post by:
The only time the Mouse_Click event is firing for the DataGrid in my application is when I click on a column, What event should I be trapping ? Mouse Down ?? Thanks
2
by: Nina | last post by:
Hi there, I've tried everything that I know to prevent usre resizing datagrid columns, but nothing works. Following are the code that I used. Please tell me what's wrong with them. Thank you....
0
by: krunalK | last post by:
I am using datagrid for inserting values from user. Now what i have done is that a binded dataset with datagrid.In dataset two tables are added and given relation to them. now i want default...
0
by: James Folkerman | last post by:
Hi. I have SQL Server database that is connected to my WPF desktop-based application via ADO.NET Entity Framework. Now I need get content of one of the table via LINQ query and show it in...
0
by: dougancil | last post by:
I have a form in an application that I'm building that allows users to edit the data from a datagridview. I have two buttons, submit changes and cancel. What I'd like to do is when the user presses...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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...

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.