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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

data grid control

Status
Not open for further replies.

akshita

Programmer
Mar 26, 2002
25
0
0
IN
hi friends,

i am having one problem.i am using datagrid control.now i want that when i add new row in it i leave it blank .i mean to say that if i am having three columns in data grid i want to leave it blank all the three columns and then want to add new row.but it not adding the new row until i write something in one of the three columns.

can u tell me how i am able to do it


regards
akshita

 
Hi,

I do not know if you really can add a blank row via DataGrid. But, thru the data control your grid is bound to, it is possible. e.g.

Code:
    urADOCtrl.Recordset.Addnew    
    'Place here conditional statements before
    'proceeding with the next code 
    '.
    '.

    urADOCtrl.Recordset.Update    

    '.
    '.
    'Either Update was executed or not,
    '  repopulate grid rows
    urDataGrid.Refresh


Hope this helps.
Good day!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top