473,586 Members | 2,491 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

DataGrid TableStyle / TextboxColumn formatting

Does anyone know if you can setup a custom column format on a datagrid such
that if a specific field (say the PwdFlag) in your database is set to a
value (such as 1), that the control will dynamically have another column
(say DisplayText) that is mapped as a DataGridTextBox Column format the data
as if it were a password (like with asterisks). However, if the PwdFlag was
anything but 1, then the actual data would be displayed in the grid cell?
Jul 21 '05 #1
0 1105

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

Similar topics

5
5554
by: Jeff Cook | last post by:
Hi I have a DataGrid that I am using to display a .xml file (that has a schema in a .xsd), like this:- ds.ReadXmlSchema(sDataPath + "Data.xsd"); ds.ReadXml(sDataPath + "Data.xml", XmlReadMode.InferSchema); grdXXXX.DataSource = ds; FormatGridColumns(grdXXXX, ds.Tables); // my routine below.
2
2531
by: Evan Brown | last post by:
Hi I have a Datagrid with a boolean column in it. I currently have it set as a textboxColumn and not a checkcolumn. what I want to do is have it say yes/no not true/false. Any suggestions? Evan Brown
2
2493
by: Josef Meile | last post by:
Hi, I'm using a ComboBox, some Textboxes, and a DataGrid to represent a many-to-many relationship between Person and Course. Each time that I change the value in the ComboBox (which for now is the OID of Person), the information of the person matching the selected OID is shown in the Textboxes (Name, Address, id, etc) and the courses this...
2
6388
by: CSL | last post by:
I am using the DataGrid in a Windows Application, how can I adjust the widths of each column individually.
1
1123
by: Steve | last post by:
I have a DataGrid connected to a DataSet (read in from an XML file). The documentation that I've read suggests that I attach a DataGridTableStyle to the DataGrid to allow for additional formatting. Each of the three columns are text fields so I created and added DataGridTextBoxColumn to the DataGridTableStyle. I set various properties of...
4
1092
by: Ed Bick | last post by:
I know how to do this stuff so easily in VB6......... 3 questions. I have loaded a grid by binding it to a dataset. All is well with that. 1) How do I retrieve the value of a column when a user clicks on a row? I use a Sheriden grid in VB6 and would do something like: MyString = MyGrid.Columns(n).Text
7
2027
by: Earl | last post by:
Any known fixes for the wacky right-alignment bug in the WinForms datagrid (VS2003)? I've tried Ken's workaround (http://www.windowsformsdatagridhelp.com/default.aspx?ID=4bfab32d-9cff-4f5c-ba95-49bb9074a8bc), but I get no alignment at all when calling the class. George Shephard's site, while imminently useful, does not have an anwer for...
3
1206
by: Art | last post by:
Hi, I need some advice with a binary column in a DataGrid. Everything seems fine except for one thing. In order to check a box, I have to click on it once to select it, and then click again to check it. Somehow this doesn't seem right. Does anyone know if this is normal behavior for a DataGrid, of if there's something I need to know? ...
0
209
by: Gerald | last post by:
Does anyone know if you can setup a custom column format on a datagrid such that if a specific field (say the PwdFlag) in your database is set to a value (such as 1), that the control will dynamically have another column (say DisplayText) that is mapped as a DataGridTextBoxColumn format the data as if it were a password (like with asterisks). ...
0
7841
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8204
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. ...
0
8339
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...
0
8220
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...
0
6617
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...
1
5712
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...
0
5392
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...
0
3838
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...
1
2345
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

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.