无法填充另一个 aspxgridview 内的 aspxgridview 的编辑文本框
我有一个带有弹出编辑表单的 ASPxGridView,其中包含另一个 ASPxGridView。当我打开编辑表单时,我可以看到 ASPxGridView,我可以单击“添加”,然后出现一个用于填充名称的文本框。当我单击该文本框时,Opera 11 中没有任何反应,并且我无法在文本框中输入任何内容。当我尝试在 FireFox 4 上执行相同操作时,我确实得到了一个光标,但我也无法输入任何文本。然后我尝试了 Chrome 10.0.648.204,但效果与 Opera 相同,不知何故 IE 9 给了我一个 HTTP 错误 400 - 错误请求,这有点奇怪,因为它是唯一出现该错误的浏览器。 它由 2 个 DevExpress 网格视图组成。
我不确定是什么代码导致了这个问题,但这是“sub”gridview:
<dx:GridViewDataTextColumn Visible="False" VisibleIndex="14"
Caption="Parameter(s)" FieldName="ASPxGV3">
<EditFormSettings Visible="True" />
<EditItemTemplate>
<dx:ASPxGridView ID="ASPxGridView3" runat="server" ClientIDMode="AutoID"
AutoGenerateColumns="False">
<Columns>
<dx:GridViewCommandColumn VisibleIndex="0">
<EditButton Visible="True">
</EditButton>
<NewButton Visible="True">
</NewButton>
<DeleteButton Visible="True">
</DeleteButton>
</dx:GridViewCommandColumn>
<dx:GridViewDataTextColumn Caption="Naam" Name="Naam" VisibleIndex="0">
</dx:GridViewDataTextColumn>
</Columns>
</dx:ASPxGridView>
</EditItemTemplate>
</dx:GridViewDataTextColumn>
I have a ASPxGridView with a popup edit form which contains another ASPxGridView. When i open the edit form i can see the ASPxGridView i can click on add and then there appears a texbox to fill with a name. When i click on that textbox nothing happens in Opera 11 and i cannot enter anything in the textbox. When i tried to do the same on FireFox 4 i did get a cursor but i was not able to input any text either. Then i tried Chrome 10.0.648.204 but that did the same as Opera and somehow IE 9 gives me a HTTP Error 400 - Bad Request which is kinda weird as it is the only browser with that error.
This is made up out of 2 DevExpress gridviews.
I am not sure what code is causing this but here is the "sub"gridview :
<dx:GridViewDataTextColumn Visible="False" VisibleIndex="14"
Caption="Parameter(s)" FieldName="ASPxGV3">
<EditFormSettings Visible="True" />
<EditItemTemplate>
<dx:ASPxGridView ID="ASPxGridView3" runat="server" ClientIDMode="AutoID"
AutoGenerateColumns="False">
<Columns>
<dx:GridViewCommandColumn VisibleIndex="0">
<EditButton Visible="True">
</EditButton>
<NewButton Visible="True">
</NewButton>
<DeleteButton Visible="True">
</DeleteButton>
</dx:GridViewCommandColumn>
<dx:GridViewDataTextColumn Caption="Naam" Name="Naam" VisibleIndex="0">
</dx:GridViewDataTextColumn>
</Columns>
</dx:ASPxGridView>
</EditItemTemplate>
</dx:GridViewDataTextColumn>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您应该设置列的 FieldName 属性以使其可编辑。
You should set the FieldName property of the column to make it editable.