How to freeze one or more columns in MS ReportViewer control? - reportviewer

Is it possible to "freeze" a column in Microsoft ReportViewer control local mode so that as the user scrolls to the right the first column or two continues to show and doesn't scroll out of view? I am using table type of report.

I found solution.
You have to click on the column above the header of the report designer. It will select whole column including Table Header, Table Details, Table Footer and click on the property (F4). Change FixedHeader Property to True.

Related

Cannot Add New Record When a Control on the Form is Bound to an SQL Bit Column

I have a form in a VB.Net Windows form app with one control bound to a Bit column in an SQL table. The form also contains a Binding Navigator (along with other controls bound to the same table).
When I click the Add New button on the Binding Navigator, the record count showing on the Binding Navigator increments by one, but it will not allow me to navigate to the new record.
If I remove the data binding to this column and leave all the other data bindings in tact, the Add New button works as expected.
I have checked the bit column in the SQL table to ensure it does not allow Nulls and the default value is set to (0).
How can I resolve this issue?
Thanks

How to fix position of scroll bar to bottom in DataGridView?

I am using Visual Studio 2010 and using Visual basic language and Service based database.
I am working on Database and trying to import data from database to DataGridView in windows forms in running mode of the application. I have three columns in database i.e ID, NAME, MARKS. Also, I have three search boxes in windows forms with the same names. The code for displaying data to DataGridView from Database is written in the event of windows forms which display all the rows of database in DataGridView whenever application starts running. I have one "Add Row " button in windows form whose event Handler contains code for adding data to database. In running mode of application, whenever I press "add button" then new row is addded to the database and also displays on the DataGridView. The newly entered row in database contains all the data that was entered in search boxes in running mode of the application.
Now the problem is that whenever new row is inserted to database and is displayed to the DataGridView, the scroll bar moves up which I don't want at all. Although, the DataGridView contain all the rows that were added later but it shows only specific number of rows of the database unless scroll bar is moved downward.
Please help me to get me out of this problem. I would be very thankful.
Waiting for your response,
Regards,
tariq.1000
DataGridView and Search boxes pic

TextBox Not Displaying Full Text in Microsoft Access

Currently I'm working on generating report using Microsoft Access. I have encounter problem where I'm unable to display full text in the text box. Control Source for this text box is from SQL Query.
This is example on what I'm getting right now:-
Appreciate any help or suggestion.
While viewing the form in Datasheet View (not Design View), double-click the edge of the column or drag to desired width. You must save the form for the formatting to stick. The width of datasheet form columns are not tied to the Width property in the property sheet. That's how it works in Access 2010 anyway.
You have to expand the Size of the text box that is all.

Option Group frame: can I add text boxes that are part of the frame instead of rad button options?

Ok so this maybe a simple/silly question but I don't know so here goes:
In access let's say I want to have a frame control, so I click the option group button and add it to the desgin surface. However, I am not wanting to use this as a option group with radio button selection, instead I would like to add text boxes instead the frame, so that when I reference the frame, it references every control instead of it, hence the text boxes, cbo boxes, etc.....just as it would if they were radio option selections.
So can you do this?
I want whatever controls I add inside the frame to be easily referenced (i.e. make all controls visible just by using frameExample.visible = true) so that I can build my own tab control groupings.....
can this be done?
Thanks!
EDIT:
What I am trying to accomplish is having a form that includes a collection of controls (input controls - cbo boxes, text boxes, etc), that serve as the Main record information. These are saved to a table via an INSERT statement on button_click because this form is unbound.
Next I have 8 categories that are relative per each main record (and data that goes along with it). Each of these categories could have a sub form area and a button click that bring it's relative form into the sub form area. These sub forms would be unbound as well as I would just save data via SQL statement. So i know I could accomplish this by running the insert statement from the parent form, on the main collection control's data that would create the KeyID number, then run a SQL statement that would turn around and load that KeyID number right back onto the page in a hidden text box.
Then when I click one of the sub forms and load its relative collection of controls, I could then save that data along with KeyID for each of these sub-forms/tables.
SO......
I was wondering if instead you could define these controls as a collection so that you could hide and make visible all the ones you need on button clicks and avoid the need for additional forms (subs). I know that if a user enters data into a text box, and then somewhere along the way that box becomes hidden, the data still exists in it and still ends up in the SQL statement....
So I want all these controls to exist on the same form, but I thought what is I could encapsulate them into a frame like an option group, then I could call the frame and all the relative controls would be called up (made visible) as needed.
Sorry for the long explanation but I thought it would help.
I do not think you can do it with an Option Group, but what you are describing is pretty much a subform, yesno?
Some examples of hiding the tab control from an app that went live in March 1998:
Tab driven by transparent command buttons over labels styled to look like colored command buttons:
Same approach, more buttons:
In this case, fake colored command buttons don't drive the tab, but insted show/hide the tab and a subform. In this case, the tab is actually driven by the listbox:
A view of when the tab is hidden and the subform revealed. The listbox drives navigation within the subform, which has a visible tab on it:
So, there's a lot that can be done without showing the tab control.

2 column table presentaion control, like the properties window in the dev environment

in a windows form if i want to duplicate the properties window layout on my form, which is basically a 2 column table with title on the left and value on the right, what control do i use to achieve that?
A DataGridView component can be used to achieve a similar visual style and functionality, though it is not exactly the same.
To add columns, click the Smart Tag and change the settings, click "edit columns", and you know the rest.
If you want the exact same functionality as the properties window, and let your users edit the properties of an object, you can use the Properties control.