Click here to Skip to main content
15,909,953 members
Home / Discussions / Database
   

Database

 
AnswerRe: How to use Dataview and Datagrid to show fields from two different tables Pin
perlmunger18-Feb-03 8:04
perlmunger18-Feb-03 8:04 
GeneralRe: How to use Dataview and Datagrid to show fields from two different tables Pin
DotNetNewbie18-Feb-03 10:36
DotNetNewbie18-Feb-03 10:36 
GeneralRe: How to use Dataview and Datagrid to show fields from two different tables Pin
perlmunger18-Feb-03 12:26
perlmunger18-Feb-03 12:26 
GeneralRe: How to use Dataview and Datagrid to show fields from two different tables Pin
DotNetNewbie18-Feb-03 23:05
DotNetNewbie18-Feb-03 23:05 
GeneralText Field as Identity in Access Pin
perlmunger17-Feb-03 7:55
perlmunger17-Feb-03 7:55 
GeneralBook Recommendations Pin
Mark Sanders17-Feb-03 4:46
Mark Sanders17-Feb-03 4:46 
GeneralDatagrid and Dataset questions Pin
DionChen17-Feb-03 4:01
DionChen17-Feb-03 4:01 
GeneralRe: Datagrid and Dataset questions Pin
perlmunger18-Feb-03 13:05
perlmunger18-Feb-03 13:05 
1. In MS Access Database, you can specify a column "Lookup" to another table for available values ( show up as List when clicked on the cell ). Can I do the same thing in Datagrid control?

1. You can do this, but it's not automatic. You have to use a template column with a dropdownlist that has been populated with the lookup values. See answer to number 2 below. The O'Reilly book I mention shows how to do this as well.

2. I'd like the user to update the data in the datagrid, but not add a new row. I will programatically add new rows through Dataset. Is this possible?

2. This is possible. There's a good tutorial on how to do in-place editing in the "Programming ASP .NET" book from O'Reilly & Associates. You can get the source code from here. Once you've downloaded the source zip file, look at the filss ex-13-06, ex-13-07, and ex-13-08. You'll have to change the names and such to see it work, but the code is there and is complete. I've tested it myself. Meanwhile, you may want to just go pick up the Programming ASP .NET book. It'll be money well spent.

-Matt

------------------------------------------

The 3 great virtues of a programmer:
Laziness, Impatience, and Hubris.
--Larry Wall
GeneralDB's on Servers Pin
RichardS16-Feb-03 21:39
RichardS16-Feb-03 21:39 
GeneralRe: DB's on Servers Pin
Hesham Amin17-Feb-03 21:43
Hesham Amin17-Feb-03 21:43 
GeneralSyntax error with CREATE TABLE Pin
IrishSonic16-Feb-03 1:41
IrishSonic16-Feb-03 1:41 
GeneralRe:Found my problem but need to be able to create table for 600 chars Syntax error with CREATE TABLE Pin
IrishSonic16-Feb-03 2:12
IrishSonic16-Feb-03 2:12 
GeneralRe:Found my problem but need to be able to create table for 600 chars Syntax error with CREATE TABLE Pin
karl_w16-Feb-03 3:17
karl_w16-Feb-03 3:17 
GeneralRe:Found my problem but need to be able to create table for 600 chars Syntax error with CREATE TABLE Pin
David Salter16-Feb-03 10:44
David Salter16-Feb-03 10:44 
GeneralThanks. Pin
IrishSonic17-Feb-03 9:58
IrishSonic17-Feb-03 9:58 
GeneralConvert ORACLE functions Pin
Andy H15-Feb-03 23:30
Andy H15-Feb-03 23:30 
GeneralRe: Convert ORACLE functions Pin
jamesr337816-Feb-03 5:38
jamesr337816-Feb-03 5:38 
GeneralRe: Convert ORACLE functions Pin
Andy H16-Feb-03 6:12
Andy H16-Feb-03 6:12 
GeneralSetting the lenght of a text field in an SQL Access database... Pin
IrishSonic15-Feb-03 4:40
IrishSonic15-Feb-03 4:40 
GeneralRe: Setting the lenght of a text field in an SQL Access database... Pin
David Salter16-Feb-03 10:42
David Salter16-Feb-03 10:42 
GeneralDocumenting DB,Sprocs,Trigers, etc... Pin
Ray Cassick14-Feb-03 11:43
Ray Cassick14-Feb-03 11:43 
GeneralAnybody plz, what is the following problem and how to solve that... Pin
Exceter13-Feb-03 23:56
Exceter13-Feb-03 23:56 
GeneralRe: Anybody plz, what is the following problem and how to solve that... Pin
Hesham Amin14-Feb-03 11:33
Hesham Amin14-Feb-03 11:33 
GeneralA simple ADO.NET and table design question Pin
DionChen13-Feb-03 5:40
DionChen13-Feb-03 5:40 
GeneralRe: A simple ADO.NET and table design question Pin
Peet Schultz17-Feb-03 8:13
Peet Schultz17-Feb-03 8:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.