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

DataGrid rowchanging

Hi ,
I want to catch the row changing of a grid before it is changed and
raise an event and based on event I should supress the change or allow
it. Though I am doing it by changing the row and reverting back now, I
would like to catch it before the row is actually changed due to a
variety of problems with the existing approach. Anybody please help me
how could I do this.

Thanks,
Shravan.
Nov 15 '05 #1
1 1946
Shravan,

I think that instead of catching the events on the DataSet itself, you
should be encapsulating the data and then controlling the access to the data
through that. This way, you control exactly what is changed and what can be
changed.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- ni**************@exisconsulting.com

"Shravan" <sh**********@semanticspace.com> wrote in message
news:8f**************************@posting.google.c om...
Hi ,
I want to catch the row changing of a grid before it is changed and
raise an event and based on event I should supress the change or allow
it. Though I am doing it by changing the row and reverting back now, I
would like to catch it before the row is actually changed due to a
variety of problems with the existing approach. Anybody please help me
how could I do this.

Thanks,
Shravan.

Nov 15 '05 #2

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

Similar topics

0
by: s-galit | last post by:
i want to save the index of the last row that have been changed on the dataGrid . im using the rowChanging and columnChanging events but i dont know how to get the row index from them.. how can...
1
by: Alex | last post by:
Hi all... I have a DataGrid bound to a DataTable. My DataTable gets updated programmatically as it contains the status of a number of worker threads. Each "main" worker thread launches a...
8
by: amber | last post by:
Hello, How can I trigger an event, when a value (cell) in my datagrid changes? TIA, amber
2
by: J | last post by:
I'm experimenting with strongly typed datasets, and when the .Fill method is called, the RowChanging fires for each row. This causes a problem when the existing data does not adhere to the rules...
2
by: Paul Sampson | last post by:
Hello, The DataGrid.CurrentCellChanged requires too much overhead to determine when only the row has changed. Can anyone suggest a way to fire an event when the user selects a different row...
3
by: Maqsood Ahmed | last post by:
Hello, Here is the scenario: I have a datagrid on a winform and a datatable is set as its datasource. I have added DataGridTableStyle in datagrid's TableStyles property. Some of Gridstyles are...
7
by: Denise | last post by:
I just realized the DataTable_RowChanging events were firing when I called Fill method of the DataAdapter! It fires TWICE for each row loaded. I thought these were only supposed to be called when...
0
by: Patrick | last post by:
I am using VB to implement a code behind class for an ASP.NET form. I am loading a DataGrid web server control with data from a table in a SQL database. the code is as follows: Private Sub...
4
by: Roger | last post by:
I have a datagrid and would like to know what even fires when a cell is changed? I want to know when the user changes a cell and moves to the next. I have some code that needs to be done to...
1
by: sherifffruitfly | last post by:
Hi all, I've got a form with a datagrid defined & presented to the user at runtime (code at the bottom.) With this, the user can happily enter all the data she likes. After a row of data is...
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: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
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.