Re: hide column(s) in windows datagrid
Thanx for the answers.
I've done all the things you tell me to do.
The problem here is that tha datagrid doesn't respect the GrdColumnStyle
settings, let's say that my query returns 10 columns, and I just set 5
columns in the datagrid because I only want to show 5, and set the first
column width to 0. Well, not only the first column is shown, but I also get
all the columns from the query in the datagrid. It's like the tablestyle
setting is being bypassed.
I'm trying to find the way to get closer (without getting hurt in the
process) to the Datagrid Web Control, wich is much easier to use and set.
thanx for the answers!
Ignacio
"Hector Correa" <hcorrea@RemoveThis_visionds.com> escribió en el mensaje
news:077501c38e13$b7bcc370$a301280a@phx.gbl...
> Hola Ignacio,
>
> As Chris mentioned, you need to use TableStyles to do
> what you want to do. And indeed, it is more complicated
> than it should.
>
> Here is an example of a small class that I created to
> save the properties of a grid to an XML file so that next
> time the user launches the form the grid properties (e.g.
> column width) are preserved:
>
> http://www.gotdotnet.com/Community/UserSamples/Details.asp
> x?SampleGuid=c70c9240-d404-4f5c-b2fc-45475ef1eeb0
>
>
>
> >-----Original Message-----
> >Hey group!
> >I have worked with ASP.NET Webforms for quite a long
> time, and about a month
> >ago I started working with VB.NET Windows Forms.
> >And I found the Datagrid control to be a bit different
> from the Webforms
> >control.
> >Above all because I had to design Table And Column
> Styles, and I Don't know
> >how to make a Column invisible.
> >(following other option that's not width = 0).
> >I believe that if I set a MappingName for a column, this
> sets a relation
> >between the column and the Datatable Column Name.
> >But what If I want to hide the ID Column? and Can I just
> show the fields I
> >want instead of receiving all the columns from the
> Datasource? (Dataset in
> >this case)
> >
> >I hope my english is clear enough.
> >thanx in advance
> >Ignacio. Tag: Last line for Exception Tag: 58570
Keep the DataGrid from scrolling when clicking on last visible row.
I need to figure out a way to keep my DataGrid from scrolling when I
click on the last visible row.
What's happening is when I click on row 5, which is the last visible
row, the datagrid scrolls so that row 6 is now the last visible row.
I'm trying to handle the mouse down/up events and catching double
clicks and this row shift is screwing things up.
Is it possible to keep the datagrid from moving around like that, when
you click on a row? I've already inherited the grid for other
reasons, so that's not a problem for me.
Thanks... Tag: Last line for Exception Tag: 58569
TextBox.TextAlign
Hello NG
Task: Left align the contents of a textbox as long as it
has the focus; while it's not focused, the contents should
be right aligned.
Tried: Set the TextAlign property to
HorizontalAlignment.Left or Right in event procedures.
Result:
- GotFocus/LostFocus: On re-entering the textbox an error
occurs: "Object reference not set to an instance of an
object". The GotFocus event is fired more than one time.
- Enter/Leave: The textbox cannot be left by pressing Tab.
- GotFocus/Leave: same as Enter/Leave
- Enter/LostFocus: On re-entering the textbox by clicking
on it it's contents are deleted, the alignment is not
changed to left.
This behaviour (I think it's a bug) is the same in VB.NET
and C#. In VB6 it works fine.
Anybody got a hint?
PS: This feature is needed for a numeric control derived
from TextBox. The behaviour is as described with the
TextBox class itself as well! Tag: Last line for Exception Tag: 58567
Printing only one line of text
Hi,
I would like to print only one line of text at a time on
a matrix printer. In VB6 I could do it by sending ESC-
sequences directly to the LPT port.
Does anyone know, how this could be done in VB.NET?
Thanks
Bruno Tag: Last line for Exception Tag: 58557
Possible data grid bug.
I'm having a few issues with a DataGrid.
We have to change the column title dynamically at run time. Unfortunately,
accessing the indexer like so:
// Loop through all the cell and see if their text width is larger than the
columnName width
for ( int count = 0; count < rowCount; count++ )
{
size = graphics.MeasureString( this.m_dataGridControl[count,
column].ToString(), this.m_dataGridControl.Font, 500, stringFormat );
if ( size.Width > width )
{
width = size.Width + rightMargin;
}
}
gives the following InvalidOperationException:
{"The 'X mm' DataGridColumnStyle cannot be used because it is not associated
with a Property or Column in the DataSource." }
Unfortunately, the documentation for this indexer suggests that the only
exception it can throw is an ArgumentOutOfRange exception. Can anyone give
me a suggestion as to what it might mean??
Cheers,
4Space Tag: Last line for Exception Tag: 58556
store binary data in text format
I would like to store some binary data inside my own XML file under some
nodes.
I can convert the whole binary file byte-by-byte by myself but are there any
more efficient and ellegant ways? I tried to use ResXResourceWriter class
but it stores the whole ResX file and what I need is only the text-encoded
binary data (i.e. the content of /data/value from such ResX).
for example:
Image i = Image.FromFile( ... );
// ? how to convert the binary data from i to the text format?
// this is NOT what I want because it writes whole ResX file
System.IO.StreamWriter sw = new StreamWriter( @"c:\000\puch.sv" );
ResXResourceWriter rw = new ResXResourceWriter( sw );
rw.AddResource( "Image", b );
Thanks for your help,
Wiktor Tag: Last line for Exception Tag: 58555
Problem with user control on a tab page
Hi,
Can anyone shed some light on this problem I am having.
I have a user control written in C# which is based on a
textbox, with a button and a vertical scrollbar inside
it. I have a property which states if the vertical
scrollbar is visible or not. Both the button and
scrollbar are docked to the right of the textbox. When I
put the control onto a tab page on a windows form
everything is ok. When however I set the SpinnerVisible
property to false the designer shows the control with no
vertical scrollbar and the button has moved to the
right. When I then run the app, the control is displayed
incorrectly, the button isn't docked to the right and
there is a gap where the scrollbar was.
If however you don't put the control on a tab page it
works fine.
Is this a problem with the tab page? or am I just missing
something?
This is the code for the control:
public class TextEntryField : System.Windows.Forms.TextBox
{
private System.Windows.Forms.Button btnLookUp;
private System.Windows.Forms.VScrollBar vscSpinner;
private bool isSpinnerVisible;
private System.ComponentModel.Container components =
null;
public TextEntryField()
{
// This call is required by the Windows.Forms
Form Designer.
InitializeComponent();
SpinnerVisible = true;
}
/// <summary>
/// Clean up any resources being used.
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if( components != null )
components.Dispose();
}
base.Dispose( disposing );
}
#region Component Designer generated code
/// <summary>
/// Required method for Designer support - do not
modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
components = new System.ComponentModel.Container
();
this.vscSpinner = new
System.Windows.Forms.VScrollBar();
this.btnLookUp = new System.Windows.Forms.Button
();
this.vscSpinner.SuspendLayout();
this.btnLookUp.SuspendLayout();
this.SuspendLayout();
/*
* Spinner
*/
this.vscSpinner.Cursor = Cursors.Arrow;
this.vscSpinner.Dock = DockStyle.Right;
this.vscSpinner.ImeMode = ImeMode.NoControl;
this.vscSpinner.LargeChange = 1;
this.vscSpinner.Name = "vscDateSpin";
this.vscSpinner.Size = new Size(16, 16);
this.vscSpinner.Location = new Point(80, 0);
this.vscSpinner.TabIndex = 1;
//
// btnLookUp
//
this.btnLookUp.BackColor = SystemColors.Control;
this.btnLookUp.Cursor = Cursors.Arrow;
this.btnLookUp.Location = new Point(64, 0);
this.btnLookUp.Size = new System.Drawing.Size(16,
16);
this.btnLookUp.Dock = DockStyle.Right;
this.btnLookUp.Name = "btnLookUp";
this.btnLookUp.FlatStyle =
System.Windows.Forms.FlatStyle.System;
this.btnLookUp.TabStop = false;
this.btnLookUp.TabIndex = 0;
//
// TextEntryField
//
this.Name = "TextEntryField";
this.Controls.Add(this.btnLookUp);
this.Controls.Add(this.vscSpinner);
this.vscSpinner.ResumeLayout(false);
this.btnLookUp.ResumeLayout(false);
this.ResumeLayout(true);
}
#endregion
public bool SpinnerVisible
{
get
{
return isSpinnerVisible;
}
set
{
isSpinnerVisible = value;
this.vscSpinner.Visible = isSpinnerVisible;
}
}
}
Cheers
Stephen White Tag: Last line for Exception Tag: 58552
Overloading Treeview.Nodes.Add Function
Hi all
Does anybody knows how to overload or of corse
shadow the function TreeView.Nodes.Add?
I have tryed to Inherit System.Windows.Forms.TreeNodes
and then overload like:
Public Overloads Function Add(ByVal TreeNode As TreeNode)
As Integer
MyBase.Nodes.Add(TreeNode)
End Function
Thanks for any comments!
Frank Tag: Last line for Exception Tag: 58551
Directory dialog box
Hi,
Is there a specific dialog box for letting the user to
choose a directory and not a file?
Thank you. Tag: Last line for Exception Tag: 58548
Printing a WinForm including an embedded IE HTML control
Folks,
I have a WinForms app which shows HTML text snippets in an embedded
MSHTML control.
Now, I need to be able to print the whole thing - how can I do this?
Is there an easy way to set up a page so I can print some stuff from
my WinForms controls (text boxes etc.), and include the HTML formatted
text in the middle of it (obviously showing the HTML formatting, like
bold, italic etc.)
Can't seem to make all ends meet - I can tell the HTML control to
print itself, but then the IE control takes over and just prints
itself - nothing else. I can't really just grab the HTML source code
from the HTML control either - I want to have it print formatted, not
in HTML source.....
Any takers??
Marc
================================================================
Marc Scheuner May The Source Be With You!
Bern, Switzerland m.scheuner(at)inova.ch Tag: Last line for Exception Tag: 58547
Find out the form caption font
Hi,
how do I find out the font that is used in the form
caption? I don't want to change it, just read it.
I looked in System.Windows.Forms.SystemInformation, but
there is no property there. I spent some time sifting
through the docs, but didn't find anything. Does anyone
know?
Thanks,
Henrik Tag: Last line for Exception Tag: 58546
ListView columnHeaders
How Can I put small images next to text in my listView
columnHeaders, in order to show to user the sorted column ? Tag: Last line for Exception Tag: 58541
SupportsTransparentBackColor
I have a smooth progress bar and, in time honoured fashion, wish to display
the progression percentage in the middle of the bar.
I naturally wish to have the text transparent but am struggling to
incorporate this enum.
I have set the flag to true for my control, but cannot then load it to a
form.
Any suggestions?
Tony Tag: Last line for Exception Tag: 58537
call c function
hi,everybody,
I create a C# windows application. Can I call a C function
in the application?
Thanks Tag: Last line for Exception Tag: 58536
run crystal report .net version in win98
When i deploy an window application to win98 and want to view the crystal
report .net version, it fails, but it works in win2k, why is that? Do i need
to do anything else? thz Tag: Last line for Exception Tag: 58534
DataGridTextBoxColumn Event
Hi all, Need some help here.
I have created my own DataGridTextBoxColumn and
DataGridTableStyle and have bound this to the DataGrid.
I am trying to capture the text changed event on a
DataGridTextBoxColumn. I need an event to be triggered
when the user either edit's text in the textbox, or tabs
on textbox, hits enter key, or presses up/down/right/left
keys.
I tried capturing the LostFocus & Leave events on the
DataGridTextBoxColumn. These events fires only if the
users hits tab on the column. It does not fire on hitting
enter key.
The TextChanged event fires for each character typed,
which probably I think I should be using to check for
integrity of data, but then how do I tell once the user
has finished typing.
Can anyone help me in this context.
Let me know if you still need more explanation.
Thanks Tag: Last line for Exception Tag: 58523
Deploy smart client as part of ASP.NET project - problem with .DLL / .EXE?
There is a small windows forms piece to a larger ASP.NET application
that integrates and uses web services.
I have done some experimenting on the deployment side of things, and
it appears that when I either embed the forms control in a page, and
thus reference the DLL assembly, or when I link to a standalone EXE,
the web server (IIS) tries to process the EXE or DLL as if were going
to execute a CGI program and return a reponse.
Instead, I want IIS to simply "download" the EXE or DLL... I have
found I can work around this by deploying my assemblies in another
virtual web folder, but I would like to deploy everything all in one
place. I imagine there must be an easy configuration setting to turn
off IIS's processing of the EXE and DLL files (since it is handling
them differently than, say, a .HTM file).
Ideas? Tag: Last line for Exception Tag: 58519
Reading content from an Excel file via a .NET application
I am looking for good documentation and preferably C#
sample code to show how to read content from an Excel
file via a .NET (Windows Form) application. I want to
access the Excel object model (for Excel 2003) from my
application. My .NET application will provide a
filename and location, open the excel file, read content
from specific locations within the spreadsheet, and then
close the Excel file.
I have searched MSDN and GotDotNet and seen documentation
for the Excel object model and several code samples. But
the paradigm seems to be different in these examples, in
that that are oriented for responding to events when a
user opens an Excel file, rather than my paradigm being
that a .NET application needs to proactively open an
Excel file and then read or manipulate it from the
external application.
I'm somewhat new to C# and to .NET, so forgive me if my
question is not phrased in correct terminology.
Thanks for any help,
Cheers,
Bruce Tag: Last line for Exception Tag: 58517
ListView ColumnHeaders
How can I display a small image in my listView
headerColumns, so that we can see the sort order ? Tag: Last line for Exception Tag: 58513
.NET Windows authentication
I have a vb.net application that connects to Web Service
pages *.asmx running on a local instance of IIS. These
webservices connect to a SQL server on another machine.
The web services are set to impersonate user, and Windows
authentication. All is well.
Next, I moved the webservices to another server running
IIS, which happens to be the SAME machine as SQL server
that these services connect to. My app can connect to the
Web service pages, but the web service fails to propgate
the CLIENT user/login credentials to the SQL server, and
it uses the NT AUTHORITY\Anonymous account for some reason.
I can't figure it out, but I've heard mention of similar
issues being solved with modifications to
Machine.config... any ideas?
The point of this is that I want to use the SQL SUSER_SNAME
() functions to restrict/change the views in SQL, so that
function needs to return the username of the authenticated
client. Tag: Last line for Exception Tag: 58511
Visual Basic IsDBNull check crashing
The following code produces a "null error" if the SQL
database column is null:
If Not IsDBNull(DsUnit1.Unit(0).TechID) Then
cmbxTechFName.SelectedValue = DsUnit1.Unit
(0).TechID
cmbxTechLName.SelectedValue = DsUnit1.Unit
(0).TechID
End If
The TechID column is defined as a integer and can be
null. The error occurs on the If statement (ie. not the
code following the Then statement). Hope someone can
point me in the right direction! Tag: Last line for Exception Tag: 58509
How to launch an App within and App
Hi all,
Either I am missing something or this can't be done. I have two apps
(C#) that I want to launch from a shell app. This will eventually be
targeted for the PocketPC. I guess ideally reusing the same form would
be nice, unless it would be too slow (I was thinking about size). How
is this done?
mark Tag: Last line for Exception Tag: 58504
printing using the AxWebBrowser
I'm using the AxWebBrowser within my application to
display an html page. I've already have a print button on
my application and when the user presses this I would like
to print the html. How can I get the AxWebBrowser object
to print? I know that I can print from the right menu, but
I would like to disable the menu if I can. Thanks.
Brenda Tag: Last line for Exception Tag: 58494
PLEASE: Problem with TreeView, TreeNode Inherit
Hi all
I have made my own Treeview Class with some additional
properties.
Now I am trying to clone Treenodes (Root), and it works
fine if I use System.Windows.Forms.TreeNode. If I use
my own class and debug it I see in the Locals Window
that the nodes have been cloned, but nothing happens
in the TreeView...
Following I have pasted the code of the class and how
I am testing it.
Thanks for any help!
Regards
Frank
-*********** The class
Public Class Cls_firstTreeView
Inherits System.Windows.Forms.TreeView
Implements ICloneable
Public Shadows Property SelectedNode() As
Cls_firstTreeNode
Get
Return CType(MyBase.SelectedNode,
Cls_firstTreeNode)
End Get
Set(ByVal Value As Cls_firstTreeNode)
MyBase.SelectedNode = Value
End Set
End Property
Public Function Clone() As Object Implements
ICloneable.Clone
Return Me.MemberwiseClone
End Function
End Class
Public Class Cls_firstTreeNode
Inherits System.Windows.Forms.TreeNode
Private var_Key As String
Private var_Key1 As String
Private var_Key2 As String
Private var_Key3 As String
Private var_Key4 As String
Private var_Key5 As String
Private var_PK As Integer
Public Overrides Function Clone() As Object
Return Me.MemberwiseClone
End Function
Public Sub New(Optional ByVal Text As String = "",
Optional ByVal Key As String = "", Optional ByVal Key1 As
String = "", Optional ByVal Key2 As String = "", Optional
ByVal Key3 As String = "", Optional ByVal Key4 As String
= "", Optional ByVal Key5 As String = "", Optional ByVal
PK As Integer = 0)
MyBase.New(Text)
var_Key = Key
var_Key1 = Key1
var_Key2 = Key2
var_Key3 = Key3
var_Key4 = Key4
var_Key5 = Key5
var_PK = PK
End Sub
Public Shadows Function Add(ByVal Text As String,
ByVal Key As String, Optional ByVal Key1 As String = "",
Optional ByVal Key2 As String = "", Optional ByVal Key3 As
String = "", Optional ByVal Key4 As String = "", Optional
ByVal Key5 As String = "", Optional ByVal PK As Integer =
0) As Cls_firstTreeNode
MyBase.Nodes.Add(Text)
var_Key = Key
var_Key1 = Key1
var_Key2 = Key2
var_Key3 = Key3
var_Key4 = Key4
var_Key5 = Key5
var_PK = PK
End Function
Public Shadows Function Add(ByVal TreeNode As
Cls_firstTreeNode) As Integer
MyBase.Nodes.Add(TreeNode)
var_Key = Key
var_Key1 = Key1
var_Key2 = Key2
var_Key3 = Key3
var_Key4 = Key4
var_Key5 = Key5
var_PK = PK
End Function
Public Property Key() As String
Get
Return var_Key
End Get
Set(ByVal Value As String)
var_Key = Value
End Set
End Property
Public Property Key1() As String
Get
Return var_Key1
End Get
Set(ByVal Value As String)
var_Key1 = Value
End Set
End Property
Public Property Key2() As String
Get
Return var_Key2
End Get
Set(ByVal Value As String)
var_Key2 = Value
End Set
End Property
Public Property Key3() As String
Get
Return var_Key3
End Get
Set(ByVal Value As String)
var_Key3 = Value
End Set
End Property
Public Property Key4() As String
Get
Return var_Key4
End Get
Set(ByVal Value As String)
var_Key4 = Value
End Set
End Property
Public Property Key5() As String
Get
Return var_Key5
End Get
Set(ByVal Value As String)
var_Key5 = Value
End Set
End Property
Public Property PK() As Integer
Get
Return var_PK
End Get
Set(ByVal Value As Integer)
var_PK = Value
End Set
End Property
End Class
-*********** How I am testing
Dim MyTreeView As New
firstTreeView.Cls_firstTreeView()
Dim MyRootNode1 As New
firstTreeView.Cls_firstTreeNode("Root X1")
MyRootNode1.Key = "Key Root X1"
Dim MyRootNode2 As New
firstTreeView.Cls_firstTreeNode("Root X2")
MyRootNode2.Key = "Key Root X2"
Dim MyChildNode1 As New
firstTreeView.Cls_firstTreeNode("Child X1")
MyChildNode1.Key = "Key Child X1"
Dim MyChildNode2 As New
firstTreeView.Cls_firstTreeNode("Child X2")
MyChildNode2.Key = "Key Child X2"
MyRootNode1.Nodes.Add(MyChildNode1)
MyRootNode2.Nodes.Add(MyChildNode2)
MyTreeView.Nodes.Add(MyRootNode1)
MyTreeView.Nodes.Add(MyRootNode2)
Dim RootNodes As New
firstTreeView.Cls_firstTreeNode()
Me.TreeView1.BeginUpdate()
For Each RootNodes In MyTreeView.Nodes
Me.TreeView1.Nodes.Add(CType(RootNodes.Clone,
firstTreeView.Cls_firstTreeNode))
Next
Me.TreeView1.EndUpdate()
Me.TreeView1.Refresh() Tag: Last line for Exception Tag: 58479
overriding form close button
Probably a silly question, but I am having trouble
figuring out how to interrupt the close button on a
Windows form and thereby prevent the application from
actually unloading.
Any suggestions appreciated. Tag: Last line for Exception Tag: 58476
Goto a line number in a text box?
Is there a way to go to and select a particular line
number in a text box or rich text box?
I already know the line number that I need to go to.
Thanks in advance for any help you can provide. Tag: Last line for Exception Tag: 58475
Best book about authoring custom controls for Windows Forms (in C#)...
I am an intermediate level software engineer with several years experience
in C++ and about six months experience in C#. I'm trying to ramp up on .NET,
and I'm looking for a good book about authoring custom controls for Windows
Forms (in C#). I would prefer the book to cover some GDI+ concepts as well.
I'm leaning toward , "Windows Forms Programming in C#", by Chris Sells. Does
anyone have any feedback about this book or suggestions about other books?
Thanks in advance - Jason Tag: Last line for Exception Tag: 58471
Best book about authoring custom controls for Windows Forms (in C#)...
I am an intermediate level software engineer with several years experience
in C++ and about six months experience in C#. I'm trying to ramp up on .NET,
and I'm looking for a good book about authoring custom controls for Windows
Forms (in C#). I would prefer the book to cover some GDI+ concepts as well.
I'm leaning toward , "Windows Forms Programming in C#", by Chris Sells. Does
anyone have any feedback about this book or suggestions about other books?
Thanks in advance - Jason Tag: Last line for Exception Tag: 58470
hide column(s) in windows datagrid
Hey group!
I have worked with ASP.NET Webforms for quite a long time, and about a month
ago I started working with VB.NET Windows Forms.
And I found the Datagrid control to be a bit different from the Webforms
control.
Above all because I had to design Table And Column Styles, and I Don't know
how to make a Column invisible.
(following other option that's not width = 0).
I believe that if I set a MappingName for a column, this sets a relation
between the column and the Datatable Column Name.
But what If I want to hide the ID Column? and Can I just show the fields I
want instead of receiving all the columns from the Datasource? (Dataset in
this case)
I hope my english is clear enough.
thanx in advance
Ignacio. Tag: Last line for Exception Tag: 58467
Login Screen....
Hello All,
Can somebody tell me how to go about creating a form
that looks just like the windows login but isn't. I have a
client that want to make people log into the this
particular web application and then the app is supposed to
keep it's own time and when thirty minutes pass have the
login pop-up agian and force another login. Of course this
all has to be done using the network login to
authenticate. They are asking that I build a windows like
login screen (Prefferably exactly like it. If not that
one). I'm using ASP.NET to develop this if that helps.
Could you please point me in a direction that may give an
example or two or three. Any help would be greatly
appreciated.
Jim Beatty, Tag: Last line for Exception Tag: 58466
How to determine reason for a form closing
In "classic" VB, you could easily determine (on one of the events) why a
form was being closed. For example, "Workstation Shutdown", "App
termination", "X button clicked", etc. How can you do this in .NET?
Specifically i am looking to determine when the user clicks the X button
on the title bar, i want to override the behaviour of that button so that
instead of closing the form, it simply hides the form.
Is there any intrinsic way to do this in VB.NET as in VB6, or is it now
necessary to actually sub-class the window and watch for the associated
message of that button?
Thanks in advance,
- Aaron. Tag: Last line for Exception Tag: 58464
Form events in inherited controls
How can I access, register to a event which is fired in my
WinForm class from a inherited textbox.
I want to register to the event in my inherited textbox
class.
Is this possible?
Thanks Tag: Last line for Exception Tag: 58455
Lost inherited controls???
Hello all,
I have a class library project from where i´m inheriting a "baseform" to a
winForm project. My problem is that all the controls that i´ve added to the
"baseform" can´t be seen in the visual designer or when run the solution.
All controls still exists in the codefile...
Thanx in advance...
/Bobby Tag: Last line for Exception Tag: 58448
Faulty App.config is destroying WinForms !
Hello,
If you change your </AppSettings> ending tag with </Appsettings>
(without uppercase 'S'), you get an 'invalid' App.config.
Now if you close your winforms and open them again, you loose their
content.
Have anyone noticed this ?
Regards,
Cybertof. Tag: Last line for Exception Tag: 58445
VersionNotFoundException when accessing column value from DataRow
I have a custom combo columnstyle for my grid.
In the paint method of it I am accessing the value of the column for
that row using the following method
GetColumnValueAtRow(source, RowNum)
Its throwing VersionNotFoundException. Says No original version of
data exists
I have tried using
myRowView[<myCol>]
to get the value, even that one is raising the same exception.
The datarowversion of the Row is Newly Added one.
It doesn't happen always, it happens only sometimes, can anybody
please provide me a workaround or correct me for this.
Can anybody from Microsoft help me out, seems to be a bug in
framework.
Thanks in Advance,
Shravan. Tag: Last line for Exception Tag: 58441
Docking bug?
Hi,
I have an MDI application with a couple of forms in it. Some of these forms
are search forms that are supposed to dock to the right of the mdi
application. The weird part is that if you open one of these searchforms
they open at the windows default location and will not dock until another
form is open. If another form is already open it docks as it should.
What did I miss?
Thanks
/Johan Tag: Last line for Exception Tag: 58435