editing the datagridview control in windows forms?

Hi..

I need to edit, cancel and use the paging option( as used in web pages ) in windows forms. Is it possible to write code in windows forms using c# for the above operations

DataGridViewPageEventArgs is available in webpages, is there any similar parameter in windows forms

Is it possible to edit the contents of the datagridview in windows forms using c#

please help.



Answer this question

editing the datagridview control in windows forms?

  • igor_22

    The Windows Forms DataGridView doesn't provide paging, as it's not really that useful - it's used in the web control to reduce data downloads and so on. Why are you trying to do it in a Windows app

    You can change the values in the DataGridView like so:

    dataGridView1.Rows[0].Cells[0].Value = "xyz";

    or by changing the underlying data source (if there is one), which is the preferred way.



  • editing the datagridview control in windows forms?