473,386 Members | 1,726 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 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 1014
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Dmitry Akselrod | last post by:
Hi, I am using a standard .NET 1.0 Datagrid. Actually, I am using two, bound to a master-detail relationship. Both DataGrids are bound to a datasource. I have the MSDN version of the...
5
by: VB Programmer | last post by:
I have an ASP.NET form that allows people to answer survey questions. There could be from 5 to an unlimited amt of questions, depending on which questions the admin wants to users to answer (he...
10
by: Terry Olsen | last post by:
I've got a datagrid set up to display data. I've also got an Edit,Update,Cancel column set up to allow editing of data. I've got a DropDownList (ID="ddl3")in the EditItemTemplate for a certain...
7
by: Juan Romero | last post by:
Hey guys, please HELP I am going nuts with the datagrid control. I cannot get the damn control to refresh. I am using soap to get information from a web service. I have an XML writer output...
10
by: JohnR | last post by:
I have a datatable as the datasource to a datagrid. The datagrid has a datagridtablestyle defined. I use the datagridtablestyle to change the order of the columns (so they can be different than...
0
by: Guy W via DotNetMonster.com | last post by:
I read and tried to use the repeater paging method I found on 4 Guys from Rolla (I've tried others also) but it doesn't seem to work. Please see the code I have below and tell me what I may be...
1
by: POKEMON | last post by:
hi friends, I have a couple of questions. I have a datagrid and a hyperlink column on it. all I want is when I click the hyperlink, go to another page with the value which is in the second cell...
6
by: André | last post by:
Hi, I made a webform for a survey, with multiple-choice questions. The results of each question is put into a table e.g.: values frequency 1 6 2 3 3 32 4 ...
2
by: =?Utf-8?B?Y3JlYXZlczA2MjI=?= | last post by:
I have a nested datagrid in a xaml file, the parent datagrid loads the vendor information and the details loads the documents for that vendor in a datagrid. Everything is working fine until I click...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.