Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Andrzejek on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dynamic grid fields in borland 7

Status
Not open for further replies.

cssdoll

Programmer
Feb 4, 2011
5
KE
Hello folks,i am wondering how to do this.Okay,this is the end result i want.

Id | Student Names | Checked Subject One | Checked Subject Two | Checked Subject Three | Checked Subject Four

To reach there i want my users to be presented with this form that lets them do this:


Choose Year -> Choose Term -> Choose Class -> Choose Examination -> Check Subject(s)[:This are subjects checkboxes] Ok Button | Cancel Button

When a user clicks okay,he/she is presented with a grid with the subjects he/she checked and the grid will look like this;ready for editing:


Id | Student Names | Checked Subject One | Checked Subject Two | Checked Subject Three | Checked Subject Four

I will be happy to learn from anyone the concept i can apply to achieve this or an alternative solution if you understand what i am looking for.
As you can tell, the select boxes will have data from the db and so are the check boxes,so that much i know.

Thanks.
 
to add a field to a dbgrid at runtime
Code:
DBGrid1.Columns.Add;
DBGrid1.Columns[0].FieldName:='Id';
DBGrid1.Columns.Add;
DBGrid1.Columns[1].FieldName:='Student Names';
DBGrid1.Columns.Add;
DBGrid1.Columns[2].FieldName:='English';
DBGrid1.Columns.Add;
DBGrid1.Columns[3].FieldName:='Math';
etc..

Aaron
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top