468,765 Members | 1,493 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,765 developers. It's quick & easy.

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 1391
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
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.