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

Select row in dataGrid - WindowsForm

Hello group,

In my application, I have form with DataGrid. Rows in dataGrid are from
table.

myDG.DataSource = myTable;

In Table I have collumn boolean type.
On Click (Mouse_up event) on the dataGrid I change value in this column

myDG[myDG.CurrentRowIndex,0] = !(bool)myDG[myDG.CurrentRowIndex,0];

and selected cell get focus - value in cell who is clicked.
How disable this focus. I want only change value (checkbox false/true)
without other effects (focus on clicked cell).

Thanks
Pawel R
Nov 17 '05 #1
1 4481
check http://www.syncfusion.com/FAQ/WindowsForms/Default.aspx
"PawelR" <pa************@poczta.onet.pl> wrote in message
news:eZ**************@TK2MSFTNGP10.phx.gbl...
Hello group,

In my application, I have form with DataGrid. Rows in dataGrid are from
table.

myDG.DataSource = myTable;

In Table I have collumn boolean type.
On Click (Mouse_up event) on the dataGrid I change value in this column

myDG[myDG.CurrentRowIndex,0] = !(bool)myDG[myDG.CurrentRowIndex,0];

and selected cell get focus - value in cell who is clicked.
How disable this focus. I want only change value (checkbox false/true)
without other effects (focus on clicked cell).

Thanks
Pawel R

Nov 17 '05 #2

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

Similar topics

10
by: ShadowsOfTheBeast | last post by:
hi all i am trying to bind data to my datagrid from a listbox which i think it should work but an error is coming up saying i have to bind to a datasource that implements the Inumerable or...
0
by: Gav | last post by:
Hi all, Is it possible to implement multiple row selection on a datagrid when you have the row headers hidden? It works as usual holding the CTRL key as long as you are clicking on the row...
2
by: SammyBar | last post by:
Hi, I'm trying to bind a custom collection class to a data grid, following the guidelines from the article http://msdn.microsoft.com/msdnmag/issues/05/08/CollectionsandDataBinding/default.aspx....
1
by: Raul Cortes | last post by:
Hi. I am using a windowsform datagrid to modify a table. The DataSet seems to be filled fined. The DataTable seems to be ok. I am not using 'read only' anywhere. The DataSource seems to be...
15
by: Rik Brooks | last post by:
I find it amazing that I am quickly able to find answers to obscure questions but simple ones elude me. I have a datagrid that I've bound, no problem at all. Now I want to - programatically -...
9
by: Rekha | last post by:
The data is filled in datagrid. I want to know how to add a checkbox column in datagrid? In the runtime, checkbox is checked then instead of checkbox value the (caseID )column value is retained....
2
by: Arsalan | last post by:
Is it possible to make a DataGrid containing other controls, for e.g checkbox or combo box ?? Is it possible to directly edit those DataGrid which are bound to Data set
4
by: juya | last post by:
Hi all, I have been struggling with datagrid for more than a week. I pretty new to datagrid, have never used it before. All I am trying to do is Edit the TDBGrid in Visual basic. I am...
3
by: Sonu | last post by:
Hello, I have a winform1 that contains the Datagrid and in winform2 you can add new values to the database for datagrid. I cannot update the datagrid on winform2 close event! All I want is to...
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: 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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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.