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.
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.