I have id(array) used in my application . i want to select number of rows mathching given array but if i used gatagrid selected Index then it will be selected only one row only . i set data grid allowMultipleSelection="true" also .. . how can be select mutipule rows in datagrid ? please refer me
for(var i:int=0;i<id.length;i++)
{
...
Hey guys:
I have a Datagridview, on wich i need to validate the user input on certains rows, and change it acording to it's value. As a example, if the user input a product code that doesn't exist on the DB, a search for a product dialog raises and search for the product and returns the correct code.
So after reading around a lot, I deci...
this is for winforms using c#
I have a datagridview which lists the email messages (.msg) in a folder.
my aim: if user double clicks on a cell in the datagridview, the corresponding email message must be opened for view
how do I do this?
...
Hi there!
I'm looking to create a free-type textbox which onkeyout "filters" a datagrid below. The old way to do this was to write a webservice and call it on each press returning the results - I was hoping there was a more eloquent way of doing this. Can anyone point me in the right direction? Documentation/Tutorials/Sites etc all wel...
I have a DataGridView (with WinForms) where I'm treating a particular row as a "child" of the row just before it. This means when a user sorts a column, that child row as to stay attached to the parent so it always appears just below it.
I'm overriding the SortCompare method to handle this, but I'm not sure just how to do it. Within Sor...
I built a dialog so that when the user decides to print the DataGridView, he can select the date range for which to print. This works fine; however, either I am missing something or the filtering is not working properly. In order to filter by a range and for it to include the correct days, you have to select one day prior to the actual d...
Using VB.NET
How to get Datagridview cell value.
I want to insert a Datagridcell value in the table, How to get datagridview cell value.
Need vb.net code Help
...
I have a DataGridView bound to a DataTable (it was bound to a List(of T) but the DataGridView is much more performant).
I add an extra DataGridViewLinkColumn to the DataGridView (the value of this column is set to equal the value of one of the bound columns, I just need it to show as a link).
The problem is when I sort the DataGridView...
Lbl_Username.Text = FirstName + " " + LastName;
#region Get current year
if (!IsPostBack)
{
int getCurrentYear = DateTime.Now.Year;
int co2 = DropDownList2.Items.Count;
for (int jj = 0; jj < co2; jj++)
{
DropDownList2.Items[jj].Selected = false;
string selectyrs = ...
I've a datatable bound to a gridview.
The datatable has the following data:
JobID Site Job List
--------- --------- --------- ---------
134 A job1 26
2241 A job2 25
124 A job3 26
244 B job1 12
154 B ads2 46
Am trying to take the count of distinct sites. So I write the following function:
public void CreateAdmins(DataTable...
Hi All, I'm new with DataGrid View control, and I've this problem:
I would like to build a C# application with this control, bounded to a custom collection. If I change the data in the collection, I would expect that the grid should change in accordance. No problem in implementing this.
The question is, this control comes with the poss...
I have a query which returns me the total data in bytes...
is there a way i can change this value to MB in the bound field
my bound field is :
<asp:BoundField DataField="totaldata" HeaderText="Total Data"
ReadOnly="True" SortExpression="totaldata" DataFormatString="{0:n2}" />
is there a way i can divide the totaldata ...
Hi
I want to use the dataGrid in the compact framework edition but I need it to have a column that only had check boxes it in it. How can I add this column?
...
Hi there!
In my winforms app, i have a datagridview that takes about 0.8 seconds to be populated with +/- 5000rows - if all columns are textbox columns.
One of the columns is an integer column, so I decided to change that column to an ImageColumn and in the Cell_formatting event of the grid, I use the following code to determine the ap...
I am trying to create datagridview connected to sqlserver.
But it seems that even in simple datagridview cannot handle quickly millions
of rows. And so scrolled to upper rows datagridview updates noticably
faster, that scrolled down to last row.
The effect can be seen:
Public Class Form1
Private Sub Form1_Load(ByVal sender As O...
Hi there!
Firstly, I know I should be using proper Threading techniques (Threadpool, BeginInvoke, etc.) to accomplish this, but thats a bit over my head currently and will call for some time to read over material and understand it (if you have any URL references for my scenario, please feel free to post it).
In the interim I am using...
Does anybody know a free datagrid or listview control with grouping and master/detail capabilites?
...
How to show a Time-picker column in DataGridView?
I don't need to pick Date. I only need time to be selected.
...
Hi all, I have a really annoying issue with a button cell in a DataGridView control. I'm binding the grid to a dataset at runtime. Some of the rows in the grid will be linked to pdf documents. I create a button column and add it to the grid, then I loop through the rows and based on the value of a certain column I set the text of the cel...
I'm a beginner with C# so I made a little app, to figure out how to work with Linq and databased in C#.
What I'm trying to do is in a DataGridView when someone clicks a row containing some data I want to go from e.RowIndex to a Linq object of the data in that row, my attempt involved using the DataBoundItem.
But for whatever reason th...