Using Datagrids in vb.net

R

Ryan McConnell

Hi,
I'm relativley new to vb.net, i have a datagrid with records from my
database on it. I am trying to construct something to select which
record i select and transfer some of the information to a richtextbox.
How do i do this?

Thanks
Ryan McConnell
 
O

One Handed Man

Is this what you need ?

rtb1.AppendText(DataGrid1.Item(2, 2).ToString())


OHM
 
R

Ryan McConnell

Thanks!

it is kinda what i mean.
Is there a way to add a button to each row in the datagrid? that passes
the values in?
I've used asp(vbscript) where its possible to pass in the reference and
params. is that possible too?
 
O

One Handed Man

Yes, you have to create buttons in code and add them using the controls
method of the datagrid. Then position them above the cells you want and so
on, see what I'm driving at.

DataGrid can be a pain sometimes, its not what I would call feature rich.

Regards - OHM
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top