aspxgridview

How can I set the column properties(DisplayFormatString to be precise) of a aspx(devExpress) grid from code behind?

こ雲淡風輕ζ 提交于 2020-01-07 03:06:57
问题 I have an aspx(devexpress) grid. Using which I generate columns dynamically from code behind.Below is the code from my grid_databinding event. GridViewDataTextColumn bfield = new GridViewDataTextColumn(); if (TestString.YearSelectedNames.ToString().Length > 4) { string colName = string.Empty; if (iCount % 2 == 0) { colName = TestString.YearSelectedNames.ToString().Substring(5, 4) + "-" + dtFreezing.Columns[iCount].ColumnName.ToString(); bfield.HeaderTemplate = new DevxGridViewTemplate

How can I set the column properties(DisplayFormatString to be precise) of a aspx(devExpress) grid from code behind?

家住魔仙堡 提交于 2020-01-07 03:06:22
问题 I have an aspx(devexpress) grid. Using which I generate columns dynamically from code behind.Below is the code from my grid_databinding event. GridViewDataTextColumn bfield = new GridViewDataTextColumn(); if (TestString.YearSelectedNames.ToString().Length > 4) { string colName = string.Empty; if (iCount % 2 == 0) { colName = TestString.YearSelectedNames.ToString().Substring(5, 4) + "-" + dtFreezing.Columns[iCount].ColumnName.ToString(); bfield.HeaderTemplate = new DevxGridViewTemplate

Calculating a ASPxGridview Column in DevExpress

匆匆过客 提交于 2019-12-31 06:57:46
问题 I have a ASPxGridview (Normally 21 column but i just want process 4 column). Every column has a decimal value. MV_EDDIE column is empty. What i want is, calculating programmaticly , MV_EDDIE columns is RISK_EUR - (IPOTEK + MV_BERND) only in GroupSummary and TotalSummary . For example; If RISK_EUR = 100 IPOTEK = 40 MV_BERND = 50 Then MV_EDDIE column should be 100 - (40 + 50) = 10 How can i do that? NOTE : I have a Sql like this SELECT A.HESAP_NO, A.TEKLIF_NO1 || '/' || A.TEKLIF_NO2 AS TEKLIF,

Calculating a ASPxGridview Column in DevExpress

瘦欲@ 提交于 2019-12-31 06:57:26
问题 I have a ASPxGridview (Normally 21 column but i just want process 4 column). Every column has a decimal value. MV_EDDIE column is empty. What i want is, calculating programmaticly , MV_EDDIE columns is RISK_EUR - (IPOTEK + MV_BERND) only in GroupSummary and TotalSummary . For example; If RISK_EUR = 100 IPOTEK = 40 MV_BERND = 50 Then MV_EDDIE column should be 100 - (40 + 50) = 10 How can i do that? NOTE : I have a Sql like this SELECT A.HESAP_NO, A.TEKLIF_NO1 || '/' || A.TEKLIF_NO2 AS TEKLIF,

How can I read a dynamically created textbox (gridview OnRowUpdating)

不羁的心 提交于 2019-12-25 04:44:32
问题 <asp:GridView ID="GridView1" runat="server" > <asp:TemplateField HeaderText="Token" SortExpression="Token" HeaderStyle-Width="100px"> <ItemTemplate> </ItemTemplate> </asp:TemplateField> </asp:GridView> update: after i view the source code of the page thsi is what i see the id of a textbox that i have created dynamic. ctl00_ContentPlaceHolder1_tabControl_tabUsers_MyControl1_gv_ctl02__token0_3 OnRowUpdating: TextBox _token = gvOrg.Rows[e.RowIndex].Cells[7].FindControl("_token " + e.RowIndex + "

How do I extract the name from HTML collection?

拜拜、爱过 提交于 2019-12-25 02:59:48
问题 Here's the step through of the javascript. I have an HTMLCollection, I want to loop through it and extract the object with the ID of FileUploadControl. How do I do it? Here's my code, how do I proceed? function uploadImage(lnk) { var row = lnk.parentNode.parentNode; var rowIndex = row.rowIndex - 1; var abc = row.cells[2].getElementsByTagName("input"); var arr = [].slice.call(abc); } 回答1: This would do it: abc.namedItem('FileUploadControl') But beware that: Different browsers behave

ASPxGridView and LinqServerModeDataSource, inserting rows by stored procedure

穿精又带淫゛_ 提交于 2019-12-13 02:49:10
问题 I have a page using ASPxGridView and to fill the GridView I use a LinqServerModeDataSource control who fetches it data through a SQL View from a MS SQL Server. So far so good but here comes the problem. I want to insert data in the database so I'm building a custom form <Templates> <EditForm> Company Name: <dx:ASPxTextBox ID="CompanyName" runat="server" /> Company Mail: <dx:ASPxTextBox ID="Email" runat="server" /> <dx:ASPxGridViewTemplateReplacement ID="UpdateButton" ReplacementType=

Insert/Update/Delete is disabled for this control. message of EntityDataSource

…衆ロ難τιáo~ 提交于 2019-12-12 20:10:44
问题 I use ASPxGridView and EntityDataSource as its datasource. In EntityDataSource , I write CommandText, so I can not set "EnableInsert", "EnableUpdate", or "EnableDelete" to true. That's why, I manipulate (insert, update, delete) data manually. Changes are made manually pass through to database. But at the side of the GridView these errors are given: For inserting: "Insert is disabled for this control." For updating: "Update is disabled for this control." For deleting: "Delete is disabled for

How to programmatically reach any AspxControl inside an AspXGridView's EditItemTemplate

假装没事ソ 提交于 2019-12-12 15:18:33
问题 Its very simple and i feel myself as an idiot :( I newly started to using DevX Controls. Its documentation and sample projects are SUCKS! My problem is: I have an ASPxGridView on my aspx page: <dx:ASPxGridView ID="dxdgMyGrid" runat="server" AutoGenerateColumns="False" OnStartRowEditing="DxGridStartRowEditing"> <SettingsEditing Mode="PopupEditForm" PopupEditFormHeight="200px" PopupEditFormWidth="500px" EditFormColumnCount="2" PopupEditFormHorizontalAlign="Center" PopupEditFormVerticalAlign=