By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,327 Members | 1,096 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,327 IT Pros & Developers. It's quick & easy.

Dataset in a Datagrid

P: n/a
Hi,

I have a datagrid1 binded with a dataset1 and I would like when I click at
any row it would show me the Value of the first Column for the clicked row in
the grid in a textbox could U show me how!!?
Thanks
--
Regads,
Rochdi

Nov 21 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
John,

See this sample on our website

http://www.windowsformsdatagridhelp....f-587f730fa118

I hope this helps,

Cor
Nov 21 '05 #2

P: n/a
Sorry I made in my question. do how the get the value into a Variable without
using the textbox control, I tried this but it failed it's returning a non
string datatype value

dim MyValue as String
MyValue = DataGrid1.DataBindings.Add("Text", dt, "Name")
--
Regads,
Rochdi
"Cor Ligthert [MVP]" wrote:
John,

See this sample on our website

http://www.windowsformsdatagridhelp....f-587f730fa118

I hope this helps,

Cor

Nov 21 '05 #3

P: n/a
John,

You can get a selectedrow direct using the dataset.

I think that this sample meets the most your last question.

http://www.windowsformsdatagridhelp....d-203ca99d2825

I hope this helps,

Cor
Nov 21 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.