Hi,
I have a commanditemtemplate which contains 2 raddatepickers.
Is is possible to use the values of these datepickers as parameter values for the datasource of the grid ?
I set the grid datasource within Page_load
I realise i can access the controls within the grid_ItemCreated, however this is called after the above code!
The reason for attempting this is so i can remove any controls within the page that relate to the grid, and purely use the grid with its own controls.
Mark
I have a commanditemtemplate which contains 2 raddatepickers.
Is is possible to use the values of these datepickers as parameter values for the datasource of the grid ?
I set the grid datasource within Page_load
| With myDataSource |
| .ConnectionString = dataConnectionString |
| .SelectCommand = "usp_GRID_Maintenance" |
| .SelectCommandType = SqlDataSourceCommandType.StoredProcedure |
| .SelectParameters.Clear() |
| .SelectParameters.Add("Start", System.TypeCode.String, FormatDateTime(dtpLower.SelectedDate, DateFormat.ShortDate)) |
| .SelectParameters.Add("End", System.TypeCode.String, FormatDateTime(dtpUpper.SelectedDate, DateFormat.ShortDate)) |
| .SelectParameters.Add("option", System.TypeCode.Boolean, optRenewal.Checked) |
| End With |
I realise i can access the controls within the grid_ItemCreated, however this is called after the above code!
The reason for attempting this is so i can remove any controls within the page that relate to the grid, and purely use the grid with its own controls.
Mark