Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
140
webdatechooser in webgrid-urgent plz help
posted

hi,

I have to use webdatechooser inside webgrid.I used the following code but still i wont get datechooser on editing .Plz help me

 

GridColumn = new UltraGridColumn();

GridColumn.BaseColumnName = "FromDate";

GridColumn.Header.Caption = GetResString("ValidFrom.Text"); //"From Date";

GridColumn.Header.RowLayoutColumnInfo.OriginY = 0;

GridColumn.Width = Unit.Percentage(25);

GridColumn.Key = "FromDate";

igrdAccess.Bands[0].Columns.Add(GridColumn);

GridColumn.AllowUpdate = AllowUpdate.Yes;

GridColumn.Type = ColumnType.Custom;

GridColumn.EditorControlID = fromDate.UniqueID;

fromDate.DropDownStyle.BackColor = System.Drawing.Color.Blue;

GridColumn.DataType = "System.DateTime";

fromDate.Format = Infragistics.WebUI.WebSchedule.DateFormat.Short;

GridColumn.FieldLen = 10;


GridColumn.HTMLEncodeContent = true;

 

Thanks in Advance,

Reagan.J