Answer Questions
Richard_Mutschler Selecting a value in a datagrid using datagridbuttoncolumn
Hi The following VB6 code (excerpt) allows me to specify a value, given it's row and column position in a flexgrid (flxGrid). Private Sub Command1_Click() Textbox1.text = flxGrid.TextMatrix(flxGrid.row,flxGrid.Col) End Sub How do i do this in C# 2005 using a datagridbuttoncolumn If i have missed any posts in this regard, please let me know Thanks Christopher Usually it is better to access data through the d ...Show All
Josh D How can I edit the width of each column in DataGrid?
I want to edit the width of columns in Datagrid in runtime like Visual Basic but I don't know how to do by C#. Please help me about that. Thanks in advandce ! The answer is with the ControlStyle-Width ="30px" in the asp : BoundField property. This will set the width of the first column in the DataGrid MyDataGrid to 100. MyDataGrid . Columns[ 0 ] . ItemStyle . Width = 100 ; ...Show All
Jan DHondt Find select Row in datagrid
Hello dear all i wnat to find all selected row in datagrid please help me Priyank Gupta public ArrayList GetSelectedRows(DataGrid dg) { ArrayList al = new ArrayList(); CurrencyManager cm = (CurrencyManager)t ...Show All
Mike_1 menu bar not showing
I have a number of forms with menu bars that show when a project is built, however, with the last few new forms i have created and added menu bar too, when project built, they will not show I have checked the initialise code, which ...Show All
roger bruhin beginner problem with databinding
After a few evenings of doing tutorials and trying things out, I just encountered my first reallife .NET problem. It concerns dynamic databinding of a Repeater control, using C# and Visual Studio 2005. For the purpose of binding a number of XML datasources (RSS feeds) to multiple Repeater controls, I made my own implementation of the ITemplate interface : public class RssTemplate : ITemplate { static int itemcoun ...Show All
SAVAJX1 how to make a property for enum ?
hello all, I define an enum at my namespace. I use it at one class (that belong to this namespace) as private, and want to have a prperty for it. I've try to do it like: public "name of the enum" "name of the property" {...} bu ...Show All
armin99 Remote Server Is Unreachable - New Install
I downloaded the install for the source today. I ran the install. Verified that the database was created and that the tables had been poplulated. Also verified the virtual web was created in IIS. Database and client are on the local sys ...Show All
Ed Lorenz Color transformation in bitmap
I am reading a TIF file which is 24bpp, and writing a JPG which is also found to be 24bpp with code very close to that shown below. In the process the deep red colors are being transformed into a ruddy rust, and the blue highlights are being subdued. Color is not being transformed radically, such as green for red, for example, it is more subtle. It is almost as if a tint were being applied. How can I elminate this color transformation ...Show All
TobyKraft Combobox event usercontrol
Hello, I am sure y'all have answered this before, but I am having a rough time finding the answer. I will blame my cold instead of my laziness. I have created a user control to hold a bunch of panels. I created a collection class to hold the panels and that works great. Now I am trying to add a combobox on the UC so that at design time It list all the panels that I have added and be able to navigate between panels using the combobox selected ...Show All
MCFH how to get Drop Down portion of combox1 closed message in .net 1.1
Hi! David M.Kean, I have read this forum http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=6246&SiteID=1 and know no DropDownClosed event in .net 1.1. So I try to raise combox drop down close event in .net 1.1 I set combox1.DroppedDown=false, combox1.DropDownStyle=DownDownList. When I click combox1, Drop Down portion show, so combox1.DroppedDown should set to True. I click combox1 again, Drop Down portion close, I ...Show All
Digidreams How to extract specific rows from datatable
Public dtMain as New DataTable("main") Public dtExtract as New DataTable("extract") I have populated a datatable called dtMain, it looks something like this Line Date Type Details Amount 1 01/07/2005 SI P225LLK   ...Show All
Andrae Behrens Adding References in the Design Time automatically
HI, We have a custom component which is using some system dlls and custom dls. When any developers uses this component, he has to add the above two references manually using the Add - References in the Project solution. Is there any way to do ...Show All
AhmadOOka Quick question on hotkeys
Hello, Is there any way possible that I can use the same hotkeys on different pages of a tab control (for example, both pages having a button that responds to Alt+S) The thing is that my two tab pages share some identical controls and I w ...Show All
John OC How to hide a property at run time?
Hi everybody. I'm trying to hide a property "from" run time. It should be available only at design time. I know it has to do with attributes but which one What do you mean with "hide a property" Can you give exactly why you need this to happen If you want something which is hidden and unsettable during run-time, but settable at design-time, I don't think it's possible. ...Show All
congratulations Problem with visual inheritance
Hi folks I'm trying to develop a simple heirarchy of dialogs. The base form contains standard OK/Cancel buttons whose parent is a panel docked to the bottom of the form. I've checked the generated code, and they have been placed correctly as children of the panel. When I build the project, the positioning of the buttons on the derived forms changes somewhat randomly within the panel. Sometimes they place themselves partially or entirely off LHS ...Show All
