471,119 Members | 1,457 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

HELP PLEASE !! DataGrid Questions


Hi I've been trying to read the greek-like dictionary help on the
datagrid control with little success in some things and I hope you can
help me:

I have a datagrid populated with a data set with two related tables so I
can see them as master-detail. in the contruction of the data set I
defined readonly cells. So far everything is fine but:

1.- How do I prevent people to add new records but allowing:
a) editing cells
b) deleting child records but no master records

In this forum I read an advice on doing something like that with a
dataview, but it only works with one table

2.- When I press the plus sign at the master record a web like link
appears with the relation name, since I have only one, I would like the
child records to be displayed without clicking a link
thanks in advance
*** Sent via Developersdex http://www.developersdex.com ***
Jan 13 '06 #1
2 971
Enrique,

That is one of the advantages that you can do it in a datagridview direct.

However in a datagrid that works only if you work with a dataview, which you
cannot use in a relation.

However, see this sample on our website to fake a relation to be able to use
a dataview and a datagrid.

http://www.vb-tips.com/default.aspx?...1-af26354b1fa0

I hope this helps,

Cor
Jan 13 '06 #2
Hi Enrique,

you will need to use a dataview for the control of edit and add new line
that you bind to your grid
for your point number 2, can't help here.

at lease you get half way there.

Marc R.

"Enrique Santa Cruz" <in*********@cela.edu.mx> wrote in message
news:%2******************@tk2msftngp13.phx.gbl...

Hi I've been trying to read the greek-like dictionary help on the
datagrid control with little success in some things and I hope you can
help me:

I have a datagrid populated with a data set with two related tables so I
can see them as master-detail. in the contruction of the data set I
defined readonly cells. So far everything is fine but:

1.- How do I prevent people to add new records but allowing:
a) editing cells
b) deleting child records but no master records

In this forum I read an advice on doing something like that with a
dataview, but it only works with one table

2.- When I press the plus sign at the master record a web like link
appears with the relation name, since I have only one, I would like the
child records to be displayed without clicking a link
thanks in advance
*** Sent via Developersdex http://www.developersdex.com ***

Jan 14 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Dmitry Akselrod | last post: by
5 posts views Thread by VB Programmer | last post: by
10 posts views Thread by Terry Olsen | last post: by
7 posts views Thread by Juan Romero | last post: by
reply views Thread by Guy W via DotNetMonster.com | last post: by
1 post views Thread by POKEMON | last post: by
6 posts views Thread by André | last post: by
2 posts views Thread by =?Utf-8?B?Y3JlYXZlczA2MjI=?= | 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.