473,473 Members | 2,004 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

update the value of a databound column within a datagrid

How do I update the value of a databound column within my datagrid from
within the SelectedIndexChanged event of a dropdownlist, also found within my
datagrid?
I believe I need to determine the row I'm on but I don't know how to get that.
Oct 16 '06 #1
2 1495
Kerry see:
http://www.4guysfromrolla.com/webtech/050801-1.2.shtml or
http://www.csharphelp.com/archives/archive212.html
Also you can see samples here.
Hope that helps
PAtrick

"KerryL" <Ke****@discussions.microsoft.comwrote in message
news:90**********************************@microsof t.com...
How do I update the value of a databound column within my datagrid from
within the SelectedIndexChanged event of a dropdownlist, also found within
my
datagrid?
I believe I need to determine the row I'm on but I don't know how to get
that.
Oct 16 '06 #2
Patrick, thank you but I guess I wasn't specific enough...I can get to the
info in the dropdownlist, what I want to do is set the text in a bound column
when the user selects something in a dropdownlist.

Here's my selectedindexchanged event for my ddl...

public void ddlResp_SelectedIndexChanged(object sender, EventArgs e)
{
dgResolution.Items[rownbr].Cells[10].Text = Session["userID"].ToString() ;
}

I don't know how to get 'rownbr' in order to say which row of the datagrid
to update - does this make sense?

"Patrick.O.Ige" wrote:
Kerry see:
http://www.4guysfromrolla.com/webtech/050801-1.2.shtml or
http://www.csharphelp.com/archives/archive212.html
Also you can see samples here.
Hope that helps
PAtrick

"KerryL" <Ke****@discussions.microsoft.comwrote in message
news:90**********************************@microsof t.com...
How do I update the value of a databound column within my datagrid from
within the SelectedIndexChanged event of a dropdownlist, also found within
my
datagrid?
I believe I need to determine the row I'm on but I don't know how to get
that.
Oct 17 '06 #3

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

Similar topics

3
by: PAUL EDWARDS | last post by:
I have a windows form that is bound to a datatable. In VB6 I could just update the field contents and it would be updated in the database, however if I update the text property of the control from...
0
by: NETDeveloper | last post by:
Hi, I almost have my nested datagrid working properly. I created a datagrid on a user control and dropped that onto another datagrid. At first, I noticed when I was stepping through the code,...
0
by: doronb | last post by:
hello my question is : i define dynamic columns to datagrid , 4 columns are databound and 1 columne is "edit template column" and only this col editable , i define function for update when...
3
by: D. Shane Fowlkes | last post by:
I have a Datagrid which in theory, should allow you to edit and update the records. I've stripped my test page down so that it's only attempting to update one field - "description". Yet when I...
1
by: Ken Varn | last post by:
I have a problem where my DataGrid would not maintain the ViewState of my databound rows. I finally narrowed down the problem. If my first column is a template column, the view state for the...
13
by: Lyners | last post by:
I have a web page writen in ASP.NET that contains some javascript so that when a user presses a button, or edits a certain field in a datagrid, another cell in the datagrid is filled with a value....
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
3
by: Jim | last post by:
I have a datagrid with a DataAdapter as the DataSource. The user fills in their data for 3 columns and I want to programically add a value to the 4th (invisible) column (employee number). That way...
5
by: Stephen Plotnick | last post by:
I'm very new to VB.NET 2003 Here is what I have accomplished: MainSelectForm - Selects an item In a public class I pass a DataViewRow to ItemInformation1 Form ItemInformation2 Form
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...
0
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,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
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...
0
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...
0
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 ...

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.