Category: ASPxGridView

ASPxGridView – Object reference not set to an instance of an object

Solution add to pproject global.asax protected void Application_Error(object sender, EventArgs e) { //We save the error information to a file named Error.txt StreamWriter sw = new StreamWriter(Server.MapPath("~/error.txt"), true); sw.WriteLine(DateTime.Now.ToString()); //Server nesnesini GetLastError metodu sunucuda oluşan son hatayı Exception tipinden getirir. Bu da şu an oluşan hata olacaktır if (Server.GetLastError().InnerException != null) sw.WriteLine(Server.GetLastError().InnerException.Me [...]

Read More

ASPxGridView Command button with image

<SettingsCommandButton NewButton-RenderMode="Image"> <NewButton Image-Url="images/Add-icon.png" Image-ToolTip="Add Record" RenderMode="Image"></NewButton> <EditButton Image-Url="images/Pencil-icon.png" Image-ToolTip="Edit Record" RenderMode="Image"></EditButton> <DeleteButton Image-Url="images/delete.png" Image-ToolTip="Delete Record" RenderMode="Image"></DeleteButton> <UpdateButton Image-Url="images/update.png" Image-ToolTip="Update " RenderMode="Image"></UpdateButton [...]

Read More