Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


Related to Datawindow(Very Urgent)

Posted on 2003-02-25
Medium Priority
Last Modified: 2013-12-26
    My question is as fallows:
  I have one datawindow,in which i retrieve data from three tables,i just wanted to click the pericular row,and insert no of rows afetr that row,which should be blank,i wanted to enter new data in it,One of field of datawindow is dropdowndatawindow,so that field should be present in blank rows too,plz hepl me ,plz give a code for it,
Thanks in advance,i hope u will help me soon..
Question by:sanika

Accepted Solution

Bhatti earned 100 total points
ID: 8024000
In dw where you want to inseret the rows just click on this row and then use the function InsertRow(row_number) in the clicked event of the dw.

InsertRow(row_number) where row_number is the row number before which row you want to insert the row or rows.

If you want to insert more then 1 row then use for loop how many rows you want to insert.

Please just have a small look on the function InsertRow(n).

Now you have a dddw in the datawindow. This dddw is the child of the parent dw. say dw you have is a dw_1. and you have a dddw in this dw_1.

In the same event (clicked) of the dw code:

datawindowchild  ldwc_child

dw_1.GetChild("name_of_column_of_dddw", ldwc_child)
ldwc_child.InsertRow(n) //where you want to insert the row.

And also please just have a look on the GetChild function.

In this function first parameter is the name of the dw_1 column where you placed the dddw.

If you have any question or you need more explaination please let me know.

Best regards



Author Comment

ID: 8025465
Its not working properly,
Tell me how i do this
If i click on perticular row,after that i ahve to add no of rows.
and second In pb7 how do i set one of my column name as detawindow,i have style as dddw,but its not working.Plz help me as soon as possible.

Assisted Solution

EAServer earned 100 total points
ID: 8027454
Put the following in the clicked event of your datawindow...

IF row < 1 THEN RETURN //No row was clicked so just return
This.InsertRow(row + 1)

That's it two lines of code are all that is needed.  Now this code is going to add a new row evertime you click on a row, are you sure that is what you want?

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In our object-oriented world the class is a minimal unit, a brick for constructing our applications. It is an abstraction and we know well how to use it. In well-designed software we are not usually interested in knowing how objects look in memory. …
Update (December 2011): Since this article was published, the things have changed for good for Android native developers. The Sequoyah Project (http://www.eclipse.org/sequoyah/) automates most of the tasks discussed in this article. You can even fin…
The viewer will learn how to use NetBeans IDE 8.0 for Windows to connect to a MySQL database. Open Services Panel: Create a new connection using New Connection Wizard: Create a test database called eetutorial: Create a new test tabel called ee…
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.
Suggested Courses

578 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question