473,387 Members | 1,687 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,387 software developers and data experts.

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 1116
Check out the TableStyles property of your datagrid:
http://msdn.microsoft.com/library/en...windowsformsda
tagridclasstablestylestopic.asp

http://msdn.microsoft.com/library/de...us/vbcon/html/
vbtskcreatingcustomcolumntypesindatagrid.asp

--
Greetz

Jan Tielens
________________________________
Read my weblog: http://weblogs.asp.net/jan
"Alice" <al******@hotmail.com> wrote in message
news:ur**************@TK2MSFTNGP09.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
tagridclasstablestylestopic.asp

http://msdn.microsoft.com/library/de...us/vbcon/html/
vbtskcreatingcustomcolumntypesindatagrid.asp

--
Greetz

Jan Tielens
________________________________
Read my weblog: http://weblogs.asp.net/jan
"Alice" <al******@hotmail.com> wrote in message
news:ur**************@TK2MSFTNGP09.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 "MappingName" 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.please.leadit.be> wrote in message
news:uK****************@TK2MSFTNGP10.phx.gbl...
Check out the TableStyles property of your datagrid:
http://msdn.microsoft.com/library/en...windowsformsda tagridclasstablestylestopic.asp

http://msdn.microsoft.com/library/de...us/vbcon/html/ vbtskcreatingcustomcolumntypesindatagrid.asp

--
Greetz

Jan Tielens
________________________________
Read my weblog: http://weblogs.asp.net/jan
"Alice" <al******@hotmail.com> wrote in message
news:ur**************@TK2MSFTNGP09.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
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...
2
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...
0
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...
5
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...
1
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...
1
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...
5
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...
0
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...
6
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)...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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
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
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
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...

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.