473,406 Members | 2,849 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

grid

when i run the webpage with datagrid(edit command) , then it expand the column width.
Apr 1 '08 #1
10 1140
Frinavale
9,735 Expert Mod 8TB
when i run the webpage with datagrid(edit command) , then it expand the column width.
I don't understand what you're having problems with.
Could you please provide more information about what you are trying to do and what is not working.

Thanks

-Frinny
Apr 1 '08 #2
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.
Apr 2 '08 #3
I download free template and i dont know how to insert into asp.net
Apr 2 '08 #4
how to delete the rows in datagrid using c# code
Apr 3 '08 #5
Shashi Sadasivan
1,435 Expert 1GB
how to delete the rows in datagrid using c# code
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.
Apr 3 '08 #6
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?
Apr 3 '08 #7
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?
Apr 3 '08 #8
Frinavale
9,735 Expert Mod 8TB
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?
Try setting the width's of your columns so that they don't change while editing.

eg:
Expand|Select|Wrap|Line Numbers
  1. <asp:GridView ID="MyGridView" runat="server" Width="800px">
  2.     <Columns>
  3.         <asp:BoundField HeaderText="A" DataField="A">
  4.             <ItemStyle Width="25%x" />
  5.          </asp:BoundField>
  6.  
  7.         <asp:BoundField HeaderText="B" DataField="B">
  8.             <ItemStyle Width="25%" />
  9.          </asp:BoundField>
  10.  
  11.         <asp:BoundField HeaderText="C" DataField="C">
  12.             <ItemStyle Width="25%" />
  13.          </asp:BoundField>
  14.  
  15.         <asp:BoundField HeaderText="D" DataField="D">
  16.             <ItemStyle Width="25%" />
  17.          </asp:BoundField>
  18.     </Columns>
  19. </aspGridView>
  20.  
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.

-Frinny
Apr 3 '08 #9
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 me
Apr 4 '08 #10
Frinavale
9,735 Expert Mod 8TB
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 me
Please post your asp code for your aspx page.
(Please remember to use [code] tags when posting code)

-Frinny
Apr 4 '08 #11

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Piet | last post by:
Hello, I have written a small program which dynamically displays data from a data structure in a wx.grid. The grid reacts as expected when the data structure is enlarged: a new row is added and...
0
by: scottmallory | last post by:
Greetings, I am new to Python...and I am having some difficulty updating a grid (wx.grid.PyGridTableBase). Everything works just fine (adding /deleting/ resizing rows, cols) except updating...
4
by: Filippo Pandiani | last post by:
I have a grid that shows the file list from a folder. On the postback, how do I get a Dataset from this grid? Thanks, Filippo.
117
by: phil-news-nospam | last post by:
Is there really any advantage to using DIV elements with float style properies, vs. the old method of TABLE and TR and TD? I'm finding that by using DIV, it still involves the same number of...
3
by: kaczmar2 | last post by:
Hey there, I have a large image in a browser window, and I would like a way to overlay grid lines on top of the image, so a user can show the grid or hide the grid lines. The grid would cover...
0
by: BH | last post by:
Hi, I am trying to build my own IHM with two treeCtrl and 1 grid, based on the wx.aui demos. My problem is with the Grid. It dosen't have scrollbars. I tried many methods (fit) but it always...
6
by: Romulo NF | last post by:
Greetings again to everyone, Im back to show this grid componenet i´ve developed. With this grid you can show the data like a normal table, remove the rows that you need, add rows, import data,...
5
by: gaya3 | last post by:
Hi, can anyone find error in the following example <%@ include file="JspBean.jsp" %> <%@ page import="java.util.*"%> <html> <head> <%
2
by: skanemupp | last post by:
so my little calculator works perfectly now. just having some trouble with the layout. this whole tkinter-thing seems to be more tricky than it should be. how can i make the 4 column of buttons...
1
by: Francesco Bochicchio | last post by:
Il Mon, 18 Aug 2008 12:15:10 +0100, dudeja.rajat ha scritto: Uhm, I don't think you should use the grid manager to obtain a window like that. The grid manager is for equally distributing...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.