blah blah blah is here! blah blah » Close

0
votes
1 answers

How to hide the ID column in the data grid, But I can able to get it if user click and sort

Hello! I have write a following code to display the fields of my choice in dataGrid. What, I want to do is to hide the ID column of COUNTRY table in the dataGrid. So it should not appear to user. But, what else I want to do is to get the ID ...

0
votes
0 answers

Rows are not insert in datagrid.. Please Help...

Hi. I want to insert data grid using datatable and define the grid columns in a program. Please help me what`s wrong with this code??? [code] SqlConnection connection; string query; SqlCommand cmd; SqlDataAda ...

0
votes
2 answers

Delete Row on status and Date entry

Guys I'm getting a little confused on how best to do this. I have a datagrid with 3 columns, column [2] contains a status and column [3] contains a date. now I want to delete the row but only if the status is "CLEANED" and is over ...

0
votes
1 answers

LastRow in DataGrid

AK01
15

Hi! I have an XML file: [code] <Paths> <Name>Total Commander</Name> <Path>C:\Programs\TC\TC.exe</Path> </Paths>[/code] I load this into DataGrid via DataSet and it works just fine. T ...

0
votes
0 answers

C#: Datagrid selected Row

Hi, i have a problem with the selection of a row in a datagrid. It works but i have to click on that row different times, and i can't use it cause on that selection i'm changing the text of a button. Anybody knows why this happens? ...

1
votes
1 answers

Pop message up on date value field

Guys I have a datagrid view, in one column is a date value in another column on the same row is a text value of either "PENDING" or "ACTIONED". I'm trying to pop a message box up if the date value in my datagridview Row. ...

0
votes
1 answers

Print a datagridview with a header and footer

How to print a datagridview with a specific header and footer?

1
votes
1 answers

Colot datagrid text on cell value asp.net

Guys, how do i change the text forecolor on the status in the datagrid cell? I have this working fine on a windows form app, but in the world of asp.net this is slightly different to me. I'm assuming i use the code in the Default.aspx.cs fi ...

0
votes
1 answers

I keep getting repeated output on my datagrid?

I executed the stored procedure on SQL itself and got correct output. I believe my problem is either the way I programmed the datagrid to bind or the way I made it on the form. [code] <asp:DataGrid ID="dgReport" runat=" ...

0
votes
1 answers

Changing button background color for one row in datagrid

I have the below code that loops through a datagrid setting the format per the items listed in that row. For some reason I cant find how to change the button background color for just one button (some buttons will be red and some will be gr ...

2
votes
1 answers

Count Rows in Datagridview

I'm trying to count the rows on my datagridview and display the number of rows on "label1" what's the best way to do this? i was going to drop the code in the form load event. Also i only want to count rows with text in, as dat ...

0
votes
1 answers

Highlight entire row in datagrid

as beginner i have been searching for solution of this for a couple days. everyone is passing information on nonexisting articles, so i decied to share my solution [code] dataGridView1.Rows[2].Selected = true; ...

0
votes
1 answers

combobox in datagrid

I am working in windows forms in c#. I have at table in sql server which has a column named AssignedTo. This column is of varchar type and contains more than one value separated by commas. When showing in datagrid, the values are shown easi ...

0
votes
1 answers

Insert text if fields null on datagrid load

how could i check through my datagrid and insert "-" automaticlly if the field is null?

0
votes
1 answers

Ignore null on datagrid cell click event

In my code below i can click on two columns of a datagrid cells that contain buttons, it works great, how ever some of the row cells contain no data, how can i adapt the bellow to ignore nulls and do nothing if the cell button is clicked? ...

Feedback