1
Answer

controlling up/down in datagrid

daveedge

daveedge

20y
1.9k
1
I have a DataGrid which has a dataset/table sucessfully bound to it. Is there any way I can control when a user moves up or down the datagrid i.e when they use the up/down arrows to move to different rows of the grid I looked to see if there was perhaps an event on the datagrid, such as "RowEnter" which would fire each time a row was entered, but could see no such event. There are events which are to do with "Mouse" movements, (up/down/press etc .. ) - but these only solve half the problem because a user can obviously use the keyboard as well as the mouse Any ideas ? Thx
Answers (1)
0
wooi83
NA 18 0 21y
thanks for mentioning connection string. i did close the connection in the connection method. infact i mustn't do that.. thanks alot...
0
subbaram_k
NA 2 0 21y
int intParamCount = 0; SqlParameter[] sqlParam=new SqlParameter[2]; SqlCommand objInsertCommand=new SqlCommand("sp_InsertReserve",objConn); //specify the connection objInsertCommand.CommandType =CommandType.StoredProcedure; //Associate Parameters sqlParam[0]=new SqlParameter("@reservationUserID",SqlDbType.VarChar ); sqlParam[0].Direction =ParameterDirection.Input ; sqlParam[0].Value =UID; sqlParam[1]=new SqlParameter("@reservationBookID",SqlDbType.VarChar ); sqlParam[1].Direction =ParameterDirection.Input ; sqlParam[1].Value =BID; while(intParamCount
0
jaac79
NA 34 0 21y
In your code where are you setting the connection object?