PDA

View Full Version : DataGrid


petersza
10-11-03, 12:07 PM
Hello,

I am trying to use a datagrid to collect data that may or may not be submitted to a table in the database on the many side of a 1-many relationship. I know how to use the grid to display data, but:

1. How do I put editable fields, such as textboxes and dropdowns, into it?

2. How do I limit the grid to a fixed vertical space on the page and allow the user to scroll the rows up and down within that space?

3. Can the grid also handle adding data, or is my only option to use a link for something like "Add new" and display another page to collect new data, which I would then add to the grid manually?

Very grateful for any help anyone can give.

Peter.

Shane
10-12-03, 05:42 PM
Hello,

I am trying to use a datagrid to collect data that may or may not be submitted to a table in the database on the many side of a 1-many relationship. I know how to use the grid to display data, but:

1. How do I put editable fields, such as textboxes and dropdowns, into it?

2. How do I limit the grid to a fixed vertical space on the page and allow the user to scroll the rows up and down within that space?

3. Can the grid also handle adding data, or is my only option to use a link for something like "Add new" and display another page to collect new data, which I would then add to the grid manually?

Very grateful for any help anyone can give.

Peter.

Take a look at Scott Mitchell's article(s) about the DataGrid. Several of your questions will be answered.

http://aspnet.4guysfromrolla.com/articles/040502-1.aspx

petersza
10-13-03, 12:17 PM
Thanks, Shane,

I will look at the article.

Peter.