|
-
Oct 19th, 2004, 12:47 PM
#1
Thread Starter
Frenzied Member
adjusting the width of columns on datagrid [* Resolved *]
Hello,
I have adjusted some properties in the tablestyle and columnstyle design properties, but l still can't get it to work. This what l have done:
In my database l have a table called Book
I have 3 collumns called RefNumber, Title, and Remarks
my datagrid code to bind to the datatable is:
Code:
grdStudents.Source = dtStudents(); //This works fine displays the data ok
grdReflesh();
Now I design the datagrid columns shape.
In the datagrid properties i have a property called : tablestyles, inside it is a designer . I add a new tablestyle and make it's mapping = "Book"
so this table properties will be applied on the table called "Book" which is the name of the table
Inside this table styles there is a gridcolumnstyles property, inside it there is a designer, I add the columns I want inside it and set their properties (height,width etc....) and for each column set it's mapping name to the column names. I l have 3 columns styles mapped to RefNumber, Title, and Remarks.
After doing all this l still can't get it to work. I have used the datatable, but will this work with only using a dataset. I am not sure.
Thanks in advance for any help,
Steve
Code:
grdStudents.Source = dtStudents(); //This works fine displays the data ok
Last edited by steve_rm; Oct 20th, 2004 at 10:16 AM.
steve
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|