[Solved] c# Devexpress datagridview to gridcontrol. manualy

You should use the following code to make the ASPxGridView show data from this table: if (connection.State == ConnectionState.Closed) { connection.Open(); SqlCommand cmd = new SqlCommand(“Select * From YazHata order by HataAdi ASC”, connection); SqlDataAdapter da = new SqlDataAdapter(cmd); DataTable dt = new DataTable(); da.Fill(dt); ASPxGridView1.DataSource = dt; // <<<< ASPxGridView1.DataBind(); //<<<<< da.Dispose(); connection.Close(); } … Read more

[Solved] How to show date in diffrent way in GridView?

It is easier for me to answer my question than isolated working code in my complex program. So this is my hack that works inside my program: private void GridView_CustomDrawEvent(object sender, RowCellCustomDrawEventArgs e) { if(e.Column.FieldName == “CreationDate”) { string date = ((DateTime) view.GetRowCellValue(e.RowHandle, “CreationDate”)); string displayDate = date.ToShortDateString() + ” ” time.ToLongTimeString(); e.DisplayText = displayDate; … Read more

[Solved] Labelcontrol In Devexpress [closed]

According to this topic in DevExpress Support Center: It is not possible to render HTML content in the XRLabel control. To accomplish this task, you can use the XRRichText control and bind the HTML property of this control to the corresponding property in your DataSource. 4 solved Labelcontrol In Devexpress [closed]

[Solved] what am I missing in this datetostr conversion? [closed]

You are declaring a TDateTime variable: var myDate : TDateTime; You are then trying to assign to this variable the result of a function that converts a TDateTime to a String: myDate := datetimetostr(dxDateTimeWheelPicker2.DateTime); So of course you get an incompatible types error, because a TDateTime is not assignment compatible with a String. But for … Read more

[Solved] Dynamic FieldName for GridViewDataTextColumn ()

No, in general. The GridViewDataTextColumn is a hierarchycal (non Data-Bound) element and it is not contained into a Data-Bound container. According to the exception’s message, I believe this is a common situation for such an ASP.NET controls: DataBinding expressions are only supported on objects that have a DataBinding event. I believe it is possible to … Read more