when i run the webpage with datagrid(edit command) , then it expand the column width.
grid
Collapse
X
-
Tags: None
-
I don't understand what you're having problems with.Originally posted by shalini166when i run the webpage with datagrid(edit command) , then it expand the column width.
Could you please provide more information about what you are trying to do and what is not working.
Thanks
-Frinny -
hi
i used datagrid with edit command it is in normal size. when i click the edit command at run time it will expand with update and cancel , then the datagrid width of each column is expanded it seems webpage itself expand.Comment
-
-
-
Your datagrid will be binding to a datasource. If the datasource has a delete command defined then you can enable deleting of the datagrid. Else if you can extract the selected row and delete the row from the underlaying datasource and rebind the datagrid, then that will do the job.Originally posted by shalini166how to delete the rows in datagrid using c# codeComment
-
I have a datagrid that displays certain pieces of information.
I have an edit command associated with the datagrid. When I click on it, it expands the datagrid lenght wise to almost 3 times the original size. Basically it sets up a input box. Is there a way to Limit the size of each box so that it doesnt expand so much?Comment
-
I have a datagrid that displays certain pieces of information.
I have an edit command associated with the datagrid. When I click on it, it expands the datagrid lenght wise to almost 3 times the original size. Basically it sets up a input box. Is there a way to Limit the size of each box so that it doesnt expand so much?Comment
-
Try setting the width's of your columns so that they don't change while editing.Originally posted by shalini166I have a datagrid that displays certain pieces of information.
I have an edit command associated with the datagrid. When I click on it, it expands the datagrid lenght wise to almost 3 times the original size. Basically it sets up a input box. Is there a way to Limit the size of each box so that it doesnt expand so much?
eg:
[code=asp]
<asp:GridView ID="MyGridView " runat="server" Width="800px">
<Columns>
<asp:BoundFie ld HeaderText="A" DataField="A">
<ItemStyle Width="25%x" />
</asp:BoundField>
<asp:BoundFie ld HeaderText="B" DataField="B">
<ItemStyle Width="25%" />
</asp:BoundField>
<asp:BoundFie ld HeaderText="C" DataField="C">
<ItemStyle Width="25%" />
</asp:BoundField>
<asp:BoundFie ld HeaderText="D" DataField="D">
<ItemStyle Width="25%" />
</asp:BoundField>
</Columns>
</aspGridView>
[/code]
Also, check out the article on how to make all the row height's the same in a DataGrid...apply the information there to your column width's instead.
-FrinnyComment
-
I design the webpage using div command. it is static. if suppose i include datagrid by clicking any button.webpage increase by div command does not increase. pls help meComment
-
Please post your asp code for your aspx page.Originally posted by shalini166I design the webpage using div command. it is static. if suppose i include datagrid by clicking any button.webpage increase by div command does not increase. pls help me
(Please remember to use [code] tags when posting code)
-FrinnyComment
Comment