We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Gridlist shows info after the user clicks on it

Thread ID:





122048 Feb 11,2016 05:17 PM UTC Feb 15,2016 12:59 PM UTC WinForms 3
Tags: GridListControl
Alejandro Agüero
Asked On February 11, 2016 05:17 PM UTC


I'm Alex and I'm new around here.

I have an issue with gridlist control, the problem is that I'm trying to retrieve values from a database taking as a parameters values from textboxes, this is actioned via button.
The first time I do this everything Works fine, next times just shows gridlist clear and shows the info after a click on it (or in another control in the form)...

Maybe I'm not giving to you a very specific explanation but I can't post source code...

I hope anyone could help me!


Pavithra Kodiyarasan [Syncfusion]
Replied On February 12, 2016 01:57 PM UTC

Hi Alex,

Thanks for contacting syncfusion support.

You can retrieve the values from a database by using following code.We  get the rowindex and column index from user through textboxes and by using those values we get the data from datasource after clicking the button.

Code snippet:
private void button1_Click(object sender, EventArgs e)


  int rowindex = Convert.ToInt32(textBox2.Text);

  int colindex = Convert.ToInt32(textBox1.Text);

  string data = this.gridListControl1.Grid[rowindex, colindex].Text;





If your requirement is different from this,Please let us know with clear explanation.


Pavithra K.

Alejandro Agüero
Replied On February 12, 2016 05:20 PM UTC

Thank you for your quick response.

I know I'm not being clear when trying to explain my requirement, but the problem is quite different. I just wanted to display info in gridlist control but it shows after I click this control or another control like a button. I think that maybe it's an unfinished event from this control because after clicking a button or combobox this ones doesn't perform its action, instead of this the gridlist control shows what I wanted to see.

Pavithra Kodiyarasan [Syncfusion]
Replied On February 15, 2016 12:59 PM UTC

Hi Alex,

I am afraid that I am unclear with your requirement. Can you please provide which event you are using to retrieve the data from datasource. Please provide the screenshots or video for your issue or reproduce your issue in given sample.


Pavithra K.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon