471,111 Members | 1,592 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

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 1429
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by PAUL EDWARDS | last post: by
reply views Thread by NETDeveloper | last post: by
reply views Thread by doronb | last post: by
3 posts views Thread by D. Shane Fowlkes | last post: by
5 posts views Thread by Jay Villa | last post: by
5 posts views Thread by Stephen Plotnick | last post: by

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.