473,804 Members | 2,715 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

RowSelectorColu mn and DataGrids

I just started using the RowSelectorColu mn from Andy Smith
(MetaBuilders.c om) and can't seem to find a way to find the other controls
in the same row of my datagrid. I really like the contro and have been able
to work for everything I need, except for this. I can't seem to use
src.parent or set src to control to allow me to traverse controls to find
the other controls.

I am trying to change the database record when the control is changed.

Is there anyway to do this? I can't seem to find a method in the docs. I did
see "owner", but it is protected.

I was looking at Scott Mitchells article on using the control, but he
doesn't talk about this issue.

Thanks,

Tom
Nov 19 '05 #1
2 1988
Check out this article from datagrid girl on how to use this control, it
might help you.
http://www.datagridgirl.com/rowselector.aspx

--
Saravana
http://dotnetjunkies.com/WebLog/saravana/
www.ExtremeExperts.com
"tshad" <ts**********@f tsolutions.com> wrote in message
news:u1******** ******@TK2MSFTN GP09.phx.gbl...
I just started using the RowSelectorColu mn from Andy Smith
(MetaBuilders.c om) and can't seem to find a way to find the other controls
in the same row of my datagrid. I really like the contro and have been able to work for everything I need, except for this. I can't seem to use
src.parent or set src to control to allow me to traverse controls to find
the other controls.

I am trying to change the database record when the control is changed.

Is there anyway to do this? I can't seem to find a method in the docs. I did see "owner", but it is protected.

I was looking at Scott Mitchells article on using the control, but he
doesn't talk about this issue.

Thanks,

Tom

Nov 19 '05 #2
"Saravana" <sa******@sct.c o.in> wrote in message
news:Xl******** ********@news.c pqcorp.net...
Check out this article from datagrid girl on how to use this control, it
might help you.
http://www.datagridgirl.com/rowselector.aspx
I looked at that article, also. The problem is that it tells you which rows
are selected, but not which row you are on.

If you have autopostback=tr ue and you select (or deselect) one of the
radiobuttons or checkboxes, it goes to the routine you defined in
OnSelectionChan ged=x. The parameters are the same as any event. The
problem is that you can't do something like src.parent, which you can with
other controls.

Also, if you try to traverse the Datagrid and find the button you pushed, it
finds the rowSelectorColu mns, but they don't seem to match the value passed
( sender in ChangeSelection s( sender as Object, e as EventArgs )). Without
this, I have know way of using the other objects in the DataGridItem to
update my data record. I can do it after the fact, but not when the button
is pushed.

Tom
--
Saravana
http://dotnetjunkies.com/WebLog/saravana/
www.ExtremeExperts.com
"tshad" <ts**********@f tsolutions.com> wrote in message
news:u1******** ******@TK2MSFTN GP09.phx.gbl...
I just started using the RowSelectorColu mn from Andy Smith
(MetaBuilders.c om) and can't seem to find a way to find the other
controls
in the same row of my datagrid. I really like the contro and have been

able
to work for everything I need, except for this. I can't seem to use
src.parent or set src to control to allow me to traverse controls to find
the other controls.

I am trying to change the database record when the control is changed.

Is there anyway to do this? I can't seem to find a method in the docs. I

did
see "owner", but it is protected.

I was looking at Scott Mitchells article on using the control, but he
doesn't talk about this issue.

Thanks,

Tom


Nov 19 '05 #3

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

Similar topics

1
1816
by: Chip | last post by:
Andy Smith's control (metabuilders.com/Tools/RowSelectorColumn.aspx ) is everywhere and I'm feeling pretty stupid. I've placed the dll in my /bin directory, registered the control, added the column to my datagrid, and it works! VS.NET even renders it in design mode (2002 didn't). However, when I go to reference it, it won't compile -- Type RowSelectorColumn is not defined. There is no documentation on what, if any, "Import" to add to the...
1
1596
by: Chip | last post by:
I'm using Andy Smith's RowSelectorColumn control (great control) and I'm not sure if this question is generic to all datagrid controls or this particular one. Is there a way to disable one of the checkboxes based on data in the grid? If so, can you provide the syntax? Thanks, Chip
0
996
by: tshad | last post by:
I have been using Andys RowSelectorColumn control for awhile now and it works great. I now need a way to put a button on a datalist datalistitem (as opposed to a datagriditem). The problem is that Andys control is for columns and it doesn't work on Datalist which has no columns per se. The Datalist has the same problem as the DataGrid in that radio buttons don't work.
0
1097
by: jlrolin | last post by:
Tearing my hair out over this, and it may be a postback problem of some sort. I have everything displaying, etc. BUT when I click the "Run Process" button, I want to grab the selected checkboxes and do an operation. Problem is, I can't get the selectedindexes. Here's the code: Private Sub btnRunProcess_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnRunProcess.Click Dim rsc As RowSelectorColumn =...
0
10561
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10318
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10069
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9132
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7608
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6845
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5505
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4277
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3803
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.