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

Problem with DataGridColumnStyle

I want to use the EndEdit function, so I need a DataGridColumnStyle
object. But I get a 'index out of range' exception when running the
line bellow:

DataGridColumnStyle dgc =
dgShowStock.TableStyles[0].GridColumnStyles[0];

I don't understand what I'm doing wrong. I tried other values then 0
for GridColumnStyles (e.g. the column number I'm trying to edit).

ps. anyone know a book in advance visual C# that you can recommend?
Nov 16 '05 #1
1 1503
Have you applied a DataGridTableStyle with at least one DataGridColumnStyle to you DataGrid? If not, then there's nothing to access, hence the exception.
Nov 16 '05 #2

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

Similar topics

0
by: David Booch | last post by:
Hi all: I created a class DatagridComboboxColumnStyle that inherits from DatagridColumnStyle.I call the method SetColumnValueAtRow in the method Commit. Now,i create an item of gridcolumnstyles...
0
by: poirierjc | last post by:
I am developing a DataGridColumnStyle for an Ink Edit control following the documentation and example in MSDN for DataGridColumnStyle Class. I am having the following problem that I am not sure how...
3
by: Mark.Larsen | last post by:
I made a class that extends DataGridColumnStyle. In the Paint override I draw a border around each cell in the column. All cells look fine except for the last one (final row). The lines I draw...
1
by: Angel | last post by:
Hi, I need to add a DataGridColumnStyle that's not mapped to anything since it'll be a combination of two datatable columns. Since I don't want to add another table column for this data, is it...
0
by: Becker | last post by:
I have a datatable that I use to display running processes. These running processes are spawned as different threads. I use the readerwriterlock class to ensure that when I write to the datatable,...
2
by: Hamed | last post by:
What does instantText mean in Edit method of DataGridColumnStyle? Regards Hamed
2
by: Carl Heller | last post by:
Working in VS2003, .Net 1.1 I'm working on a project where I compare data between two databases. This is a lengthy process, and very data intensive, so I decided to create a class, and thread...
0
by: Kevin Humphreys | last post by:
Hi, I have a windows form datagrid and have added added a checkbox to this grid using the DataGridColumnStyle component. Dim Col As DataGridColumnStyle = New DataGridBoolColumn I need to do...
4
LoanB
by: LoanB | last post by:
Hi gang, Im busy writing my firs Windows Mobile 6 Application. - I'm a beginner ok. My first problem: When I run the app through the emulator I get an error: Database file cannot be found. ...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: 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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.