473,503 Members | 2,259 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to new added column in the fist column

ad
I added column to a DataTable, I want the column to be display in the first
place of a dataGrid.
The Column in dataGird is auto-generate.
How can I do that?
Nov 19 '05 #1
3 1010
Hi ad,

I don't believe there is a way to insert a column into a specific place
in the DataTable. If for some reason you are not able to set the order
of the DataGrid, the other option would be to change the order of the
columns retrieved via the query you are using to retrieve the data.

Hope this helps.

Tod Birdsall, MCSD for .Net
http://tod1d.blogspot.com

Help me get free Sony PSP and get one for yourself:
http://tinyurl.com/8n4hg

Nov 19 '05 #2
Don't use autogenerate and you will see how much more control you have.

Eliyahu

"ad" <ad@wfes.tcc.edu.tw> wrote in message
news:uu**************@tk2msftngp13.phx.gbl...
I added column to a DataTable, I want the column to be display in the first place of a dataGrid.
The Column in dataGird is auto-generate.
How can I do that?

Nov 19 '05 #3
Hi
You can try with
<asp:DataGrid ID="ItemsGrid" Runat="Server" CssClass="label">

<Columns>

<asp:TemplateColumn HeaderText="Select">

<ItemTemplate>

<asp:CheckBox ID="SelectCheckBox" Runat="Server" Checked="false" />

</ItemTemplate>

</asp:TemplateColumn>

</Columns>

</asp:DataGrid>

Alex.

"ad" <ad@wfes.tcc.edu.tw> wrote in message
news:uu**************@tk2msftngp13.phx.gbl...
I added column to a DataTable, I want the column to be display in the
first
place of a dataGrid.
The Column in dataGird is auto-generate.
How can I do that?

Nov 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
1831
by: kindermaxiz | last post by:
hi there i have a mysql table and i want the user to add columns using a php interface and then display the table with the newly added column. I was thinking about putting all the columns...
8
7886
by: Ashish Shridharan | last post by:
Hi All I have been trying to add a control to the header cell of a datagrid on my ASP.NET page. These controls are defined in the HTML as ASP.NET web controls. They are being added into the...
2
281
by: Rod | last post by:
I have a dataset which originally came from an Access table. I then add a column using code to the table in the dataset and fill it with data. (About 1000 records) . The column is not in the...
0
249
by: Amar | last post by:
I have created a Template Column and Added to a Datagrid, which contains a checkBox. The column is not Binded to any column of the Dataset, but is an extra one so i can retrieve on Save Button...
3
1538
by: finleeds | last post by:
hi all I m using the visual studio designer to create 1 Dataset with 1 table with 3 columns : Id, Name, Birthday. Once this done, still with the designer, I m creating a datagridview and...
0
925
by: SWIL | last post by:
Hi, I made my own datacolumn Class which inherits from Data.DataColumn. To this class I have added 2 properties. To add datacolumn created through my new class I have to call.. ...
5
4698
by: =?Utf-8?B?TWFyYyBXb29sZnNvbg==?= | last post by:
Hi, I have a strange issue occurring with LinkButtons that are dynamically added to each (data) row of my DataGrid on that grid's ItemDataBound event. Each LinkButton is assigned its own event...
4
10987
by: Craig Buchanan | last post by:
I dynamically add data-bound templates to a gridview in my ascx control. while this works correctly when the gridview is databound to the datatable, i'm having issues on postback. i would like...
7
6633
by: RichB | last post by:
I am trying to get to grips with the asp.net ajaxcontrol toolkit, and am trying to add a tabbed control to the page. I have no problems within the aspx file, and can dynamically manipulate a...
0
7093
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
5598
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,...
1
5023
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4690
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3180
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3171
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1522
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
748
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
402
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.