Datagrid Cell Question

Datagrid Cell Question

Post by tarun.sinh » Thu, 22 Jun 2006 23:53:04

Hello All

I Know I am Saking a ver Silliy Question Plz Excuse me For a poor
Knowledge on datagrid.
I am a beginner for this technology.

I have a dropdownlist which is populated with a tables name containing
more than three Coloum, as I select the table name, the datagrid is
created and show the content of the table.
I want to update the content of the table, for that purpose i need to
Know which colunm is being updated, so that i can easily send that
updated text with there colunm name in store procedure which
encapsulate updated query.

Plz help me out

with regards
Tarun Sinha

1. DataGrid: How do I select and copy text for a DataGrid cell?

2. Getting DataGrid Cell bounds in Winforms DataGrid

Hai all,

I am trying to add a custom column to the DataGrid. I need to know the cell
bounds of that column in the MouseOver and MouseDown events of the DataGrid,
when there is a vertical scroll bar also. Using HitTestInfo I would know the
row and column but cannot be able to find the cell bounds using that(since
bounds would be different if there is a vertical scroll bar). Any Ideas
would be greatly appreciated...

This is the approach I followed to get cell bounds but would not work if
there is vertical scroll bar...

xpos = 0; assuming its the first column in the grid;
ypos = TableStyle.PreferredRowHeight;
r =
((LinkLabelColumn )TableStyle.GridColumnStyles[hti.Column]).cellBounds();

for(int i = 0; i < hti.Column; i++)
xpos += TableStyle.GridColumnStyles[i].Width;
for(int i = 0; i < hti.Row; i++)
ypos += TableStyle.PreferredRowHeight ;

r = new Rectangle(xpos, ypos, txtWidth, txtHeight);
if( r.Contains(e.X, e.Y))
do something....


3. DataGrid: How do I know if a DataGrid cell is being edited

4. Links in web datagrid - letting a user click on a datagrid cell

5. question about a datagrid cell

6. Simple question - Datagrid - how to detect change in a row cell?

7. Webform Datagrid question - Altering text in a cell

8. DataGrid Cell Alignment Question

9. Datagrid cell height and width question

10. Change in DataGrid Cell (combobox) should cause change in another cell (TextBox)

11. color the cell of the datagrid when the cell has been updated

12. datagrid - update data in BD cell by cell

13. RadioButtonList In A DataGrid Cell - Can I find the selected button without editing the cell?

14. How to programmatically update a cell after user editing another cell in Datagrid windform?

15. RadioButtonList In A DataGrid Cell - Can I check the slected item without editing the cell?