473,657 Members | 2,513 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to configure Data Grid's user interface in VB .Net 03?

In VB, we can easily configure DB Grid Control's interface by right clicking
it and select edit.
After that we can edit the column header, adjust the column width and do
many other things.

However, I am not too sure how to do the same thing in VB .Net 2003's Data
Grid control.
Can anybody help? TIA.
Nov 20 '05 #1
3 1130
Check out the TableStyles property of your datagrid:
http://msdn.microsoft.com/library/en...windowsformsda
tagridclasstabl estylestopic.as p

http://msdn.microsoft.com/library/de...us/vbcon/html/
vbtskcreatingcu stomcolumntypes indatagrid.asp

--
Greetz

Jan Tielens
_______________ _______________ __
Read my weblog: http://weblogs.asp.net/jan
"Alice" <al******@hotma il.com> wrote in message
news:ur******** ******@TK2MSFTN GP09.phx.gbl...
In VB, we can easily configure DB Grid Control's interface by right clicking it and select edit.
After that we can edit the column header, adjust the column width and do
many other things.

However, I am not too sure how to do the same thing in VB .Net 2003's Data
Grid control.
Can anybody help? TIA.

Nov 20 '05 #2
Check out the TableStyles property of your datagrid:
http://msdn.microsoft.com/library/en...windowsformsda
tagridclasstabl estylestopic.as p

http://msdn.microsoft.com/library/de...us/vbcon/html/
vbtskcreatingcu stomcolumntypes indatagrid.asp

--
Greetz

Jan Tielens
_______________ _______________ __
Read my weblog: http://weblogs.asp.net/jan
"Alice" <al******@hotma il.com> wrote in message
news:ur******** ******@TK2MSFTN GP09.phx.gbl...
In VB, we can easily configure DB Grid Control's interface by right clicking it and select edit.
After that we can edit the column header, adjust the column width and do
many other things.

However, I am not too sure how to do the same thing in VB .Net 2003's Data
Grid control.
Can anybody help? TIA.

Nov 20 '05 #3
I had trouble applying any styles until I put the correct "MappingNam e" into
the table style properties. I had to put in cvt_lookup, and to access the
rows in the dataset I have a dataset that looks like:

Ds_lookup1.cvt_ lookup.Rows(ll_ cur_row)

Hope this helps,

-Mike
"Jan Tielens" <ja*@no.spam.pl ease.leadit.be> wrote in message
news:uK******** ********@TK2MSF TNGP10.phx.gbl. ..
Check out the TableStyles property of your datagrid:
http://msdn.microsoft.com/library/en...windowsformsda tagridclasstabl estylestopic.as p

http://msdn.microsoft.com/library/de...us/vbcon/html/ vbtskcreatingcu stomcolumntypes indatagrid.asp

--
Greetz

Jan Tielens
_______________ _______________ __
Read my weblog: http://weblogs.asp.net/jan
"Alice" <al******@hotma il.com> wrote in message
news:ur******** ******@TK2MSFTN GP09.phx.gbl...
In VB, we can easily configure DB Grid Control's interface by right

clicking
it and select edit.
After that we can edit the column header, adjust the column width and do
many other things.

However, I am not too sure how to do the same thing in VB .Net 2003's Data Grid control.
Can anybody help? TIA.


Nov 20 '05 #4

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

Similar topics

0
4114
by: Mike N. | last post by:
Hello to all: First let me apologize for the length of this question, I've made an attempt to include as much information as is needed to help with the question. I am having problems putting together a query to pull out an alternative hierarchical view of my data. The database is implemented under SQL Sever 2000 and I am writing the front end using VB.Net and ADO.net. The following is the portion of my database structure that I am...
2
4867
by: Jordan O'Hare | last post by:
Hello Everyone, I am after some help with the following: I have a windows application that contains a list box and two data grids. All three controls are binded to a dataset that contains five tables, and three relations that I want to take advantage of. Everything works fine however I want to use the data grid table style editor to make it look more presentable. Currently I have successfully done this
0
2338
by: Ann Morris | last post by:
INTRODUCTION One of the most powerful aspects of .NET and Windows Forms is data binding. Data binding is the process of associating user interface (UI) elements with a data source to generate a visual representation of data. Two types of data binding are available for Windows Forms: Simple Data Binding and Complex Data Binding. Simple data binding allows you to bind one data element to a control. In many situations you want to display...
5
2492
by: pmud | last post by:
Hi, I need to display columns in a data grid based on 7 different queries. Now I have 32 questions: 1. Is it possble to have 1 single data adapter with 7 queries & 1 data set or do I need to have a separate data adapter & a separate data set for each select query? If thats possible then how?
1
1487
by: Ananth | last post by:
Hi, I have a question regarding data grids My application requires me to use a grid for displaying data, however I would not be using a database for procuring the data, instead I would be exposing interfaces for other methods to pass me the data that needs to be displayed. In such a case is the data grid the best control to use in .NET? Also if I am using a data grid, how can I obtain the value in the current cell of the data grid?(where...
1
1674
by: .Net Sports | last post by:
I am resurrecting an old script from a previous programmer, and want to migrate it over to asp.net from classic asp. Tho there are other peripheral parts of the script (that really have no bearing on the core, in which I will explain), the main core is the concern. I have a daily feed from a horseracing prognosticator that gets put into an sql database on a daily basis for roughly 15 popular racetracks. A user (who will need a...
5
2774
by: tshad | last post by:
Is there a way to carry data that I have already read from the datagrid from page to page? I am looking at my Datagrid that I page through and when the user says get the next page, I have to go to the database to get the next page. Is there a way to use the dataset to allow us to read back and forth in it instead of going back to the database to get it? Thanks,
0
8062
by: bsdixon21222 | last post by:
Hello All, I havn't been programming with python too long, but decided the best way to learn it would be to dive right in. Right now I have been taking snippets here and there along with modifying some code in between to create some programs. The one I am currently doing requires me to ssh to a raritan, choose one of the cisco devices ( a router in this case) and shut down or bring up the interface based on the check boxes selected. My issue...
6
2938
by: insirawali | last post by:
Hi all, I have this problem, i need to know is there a way i cn use the data adapter's update method in this scenario. i have 3 tables as below create table table1{ id1 int identity(1,1) Constraint pk_table1 Primary Key,
0
8842
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8513
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7352
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6176
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4173
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4330
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2742
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 we have to send another system
2
1970
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1733
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.