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

how to use DataGrid...

P: n/a
LLJ
When user selected one row from DataGrid, how can i get each cell's
value and show these values into CombBox and text box.
Thank you for any help.

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


P: n/a
In the DataGrid1 click event, do this:

ComboBox1.Items.Add(DataGrid1.Item(DataGrid1.Selec tedIndex, 0) ' 0 is the
first column in the datagrid
TextBox1.Text = CType(DataGrid1.Item(DataGrid1.SelectedIndex, 1)) '1 is the
2rd column in the datagrid

And so on.....
Hope this helps.
Stanav.

"LLJ" <ll******@yahoo.com> wrote in message
news:11**********************@g47g2000cwa.googlegr oups.com...
When user selected one row from DataGrid, how can i get each cell's
value and show these values into CombBox and text box.
Thank you for any help.

Nov 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.