This code is to display record set in a data grid
Dim sql_status As String
sql_status = "Select active_id,refer_id,process_name,process_type,process_start_date, process_end_date from tbl_active_log where refer_id = '" & txt_refer.Text & "' order by active_id"
Here I pass the string to the display_data_grid and then it gives all the records for the query
Public Sub display_data_grid(Adodc_RecordSource_Sql As String)
grd_loan_details.Refresh
Adodc1.ConnectionString = Connect2Sourcedb.conn
Adodc1.CursorLocation = adUseClient
Adodc1.LockType = adLockOptimistic
Adodc1.CursorType = adOpenDynamic
Adodc1.RecordSource = Adodc_RecordSource_Sql
grd_loan_details.Refresh
Adodc1.Refresh
txt_Record_Count = Adodc1.Recordset.RecordCount
Set grd_loan_details.DataSource = Adodc1
grd_loan_details.Refresh
Adodc1.Refresh
End Sub
No my issue is I need to color yellow on the lastest active_id row in the grid.Please help me with the code.Thanks
Dim sql_status As String
sql_status = "Select active_id,refer_id,process_name,process_type,process_start_date, process_end_date from tbl_active_log where refer_id = '" & txt_refer.Text & "' order by active_id"
Here I pass the string to the display_data_grid and then it gives all the records for the query
Public Sub display_data_grid(Adodc_RecordSource_Sql As String)
grd_loan_details.Refresh
Adodc1.ConnectionString = Connect2Sourcedb.conn
Adodc1.CursorLocation = adUseClient
Adodc1.LockType = adLockOptimistic
Adodc1.CursorType = adOpenDynamic
Adodc1.RecordSource = Adodc_RecordSource_Sql
grd_loan_details.Refresh
Adodc1.Refresh
txt_Record_Count = Adodc1.Recordset.RecordCount
Set grd_loan_details.DataSource = Adodc1
grd_loan_details.Refresh
Adodc1.Refresh
End Sub
No my issue is I need to color yellow on the lastest active_id row in the grid.Please help me with the code.Thanks