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

??? datagrid ....very intresting ?????

Status
Not open for further replies.

rohitt

Programmer
Jul 1, 2002
42
0
0
IN
i am working with a datagrid object which is bound to an adodc...i am not finding any function like setfocus ,etc to go to a particular cell..
other problem i have a primary key in there (emp_id ) with format as general number ...now to check if user doesnt enters data with same primary key again i hv defined an array which i put all the previous employee id's by using a recordset..

now if it exists i hv to clear that cell n show msg duplicate emp id..!!!
so i am doing
DataGrid1.Columns(ColIndex).Value = Null
DataGrid1.Columns(ColIndex).Value = ""
but all this shows error..as the format of my field is general number...so is there any way to clear my datagrid cell...i mean make it blank and is there any way to setfocus on a particular cell..

regards,
rohit -----------------------------------
Its nice to be important, but it's more important to be nice.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top